type Gtk_Alignment_Record is new Gtk.Bin.Gtk_Bin_Record with private;
type Gtk_Alignment is access all Gtk_Alignment_Record'Class;
Xalign_Property : constant Glib.Properties.Property_Float;
Yalign_Property : constant Glib.Properties.Property_Float;
Xscale_Property : constant Glib.Properties.Property_Float;
Yscale_Property : constant Glib.Properties.Property_Float;
Bottom_Padding_Property : constant Glib.Properties.Property_Uint;
Left_Padding_Property : constant Glib.Properties.Property_Uint;
Right_Padding_Property : constant Glib.Properties.Property_Uint;
Top_Padding_Property : constant Glib.Properties.Property_Uint;
procedure Gtk_New
( | Alignment | : out Gtk_Alignment; |
Xalign | : Gfloat; | |
Yalign | : Gfloat; | |
Xscale | : Gfloat; | |
Yscale | : Gfloat); |
procedure Initialize
( | Alignment | : access Gtk_Alignment_Record'Class; |
Xalign | : Gfloat; | |
Yalign | : Gfloat; | |
Xscale | : Gfloat; | |
Yscale | : Gfloat); |
function Get_Type return Gtk.Gtk_Type;
procedure Set
( | Alignment | : access Gtk_Alignment_Record; |
Xalign | : Gfloat; | |
Yalign | : Gfloat; | |
Xscale | : Gfloat; | |
Yscale | : Gfloat); |
function Get_Xalign
( | Alignment | : access Gtk_Alignment_Record) return Gfloat; |
function Get_Yalign
( | Alignment | : access Gtk_Alignment_Record) return Gfloat; |
function Get_Xscale
( | Alignment | : access Gtk_Alignment_Record) return Gfloat; |
function Get_Yscale
( | Alignment | : access Gtk_Alignment_Record) return Gfloat; |
procedure Set_Padding
( | Alignment | : access Gtk_Alignment_Record; |
Padding_Top | : Guint; | |
Padding_Bottom | : Guint; | |
Padding_Left | : Guint; | |
Padding_Right | : Guint); |
procedure Get_Padding
( | Alignment | : access Gtk_Alignment_Record; |
Padding_Top | : out Guint; | |
Padding_Bottom | : out Guint; | |
Padding_Left | : out Guint; | |
Padding_Right | : out Guint); |
A Gtk_Alignment controls the size and alignment of its single child inside the area allocated to the alignment widget.
The scale/size settings indicate how much the child will expand to fill the container. The values should be in the range 0.0 (no expansion) to 1.0 (full expansion). Note that the scale only indicates the minimal size for the child, it does not force an absolute size.
The alignment settings indicate where in the alignment widget the child should be located. The values are in the range 0.0 (top or left) to 1.0 (bottom or right). These settings are irrelevant if the child is fully expanded.
Binding from C File version 2.8.17
<testgtk>create_alignment.adb</testgt>