package Implements_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Alignment_Record, Gtk_Alignment);
type Gtk_Alignment_Record is new Gtk_Bin_Record with null record;
type Gtk_Alignment is access all Gtk_Alignment_Record'Class;
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;
Xalign_Property : constant Glib.Properties.Property_Float;
Xscale_Property : constant Glib.Properties.Property_Float;
Yalign_Property : constant Glib.Properties.Property_Float;
Yscale_Property : constant Glib.Properties.Property_Float;
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 Glib.GType;
procedure Get_Padding
( | Alignment | : access Gtk_Alignment_Record; |
Padding_Top | : out Guint; | |
Padding_Bottom | : out Guint; | |
Padding_Left | : out Guint; | |
Padding_Right | : out Guint); |
procedure Set_Padding
( | Alignment | : access Gtk_Alignment_Record; |
Padding_Top | : Guint; | |
Padding_Bottom | : Guint; | |
Padding_Left | : Guint; | |
Padding_Right | : Guint); |
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; |
function "+"
( | Widget | : access Gtk_Alignment_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Alignment renames Implements_Buildable.To_Object; |
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.