package Implements_Gtk_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 | : not null access Gtk_Alignment_Record'Class; |
Xalign | : Gfloat; | |
Yalign | : Gfloat; | |
Xscale | : Gfloat; | |
Yscale | : Gfloat); |
function Gtk_Alignment_New
( | Xalign | : Gfloat; |
Yalign | : Gfloat; | |
Xscale | : Gfloat; | |
Yscale | : Gfloat) return Gtk_Alignment; |
function Get_Type return Glib.GType;
procedure Get_Padding
( | Alignment | : not null access Gtk_Alignment_Record; |
Padding_Top | : out Guint; | |
Padding_Bottom | : out Guint; | |
Padding_Left | : out Guint; | |
Padding_Right | : out Guint); |
procedure Set_Padding
( | Alignment | : not null access Gtk_Alignment_Record; |
Padding_Top | : Guint; | |
Padding_Bottom | : Guint; | |
Padding_Left | : Guint; | |
Padding_Right | : Guint); |
procedure Set
( | Alignment | : not null access Gtk_Alignment_Record; |
Xalign | : Gfloat; | |
Yalign | : Gfloat; | |
Xscale | : Gfloat; | |
Yscale | : Gfloat); |
function "+"
( | Widget | : access Gtk_Alignment_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Alignment renames Implements_Gtk_Buildable.To_Object; |
The Gtk.Alignment.Gtk_Alignment widget controls the alignment and size of its child widget. It has four settings: xscale, yscale, xalign, and yalign.
The scale settings are used to specify how much the child widget should expand to fill the space allocated to the Gtk.Alignment.Gtk_Alignment. The values can range from 0 (meaning the child doesn't expand at all) to 1 (meaning the child expands to fill all of the available space).
The align settings are used to place the child widget within the available area. The values range from 0 (top or left) to 1 (bottom or right). Of course, if the scale settings are both set to 1, the alignment settings have no effect.
Note: Note that the desired effect can in most cases be achieved by using the Gtk.Widget.Gtk_Widget:halign, Gtk.Widget.Gtk_Widget:valign and Gtk.Widget.Gtk_Widget:margin properties on the child widget, so Gtk.Alignment.Gtk_Alignment should not be used in new code.