package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Misc_Record, Gtk_Misc);
type Gtk_Misc_Record is new Gtk_Widget_Record with null record;
type Gtk_Misc is access all Gtk_Misc_Record'Class;
Xalign_Property : constant Glib.Properties.Property_Float;
Xpad_Property : constant Glib.Properties.Property_Int;
Yalign_Property : constant Glib.Properties.Property_Float;
Ypad_Property : constant Glib.Properties.Property_Int;
function Get_Type return Glib.GType;
procedure Get_Alignment
( | Misc | : not null access Gtk_Misc_Record; |
Xalign | : out Gfloat; | |
Yalign | : out Gfloat); |
procedure Set_Alignment
( | Misc | : not null access Gtk_Misc_Record; |
Xalign | : Gfloat; | |
Yalign | : Gfloat); |
procedure Get_Padding
( | Misc | : not null access Gtk_Misc_Record; |
Xpad | : out Gint; | |
Ypad | : out Gint); |
procedure Set_Padding
( | Misc | : not null access Gtk_Misc_Record; |
Xpad | : Gint; | |
Ypad | : Gint); |
function "+"
( | Widget | : access Gtk_Misc_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Misc renames Implements_Gtk_Buildable.To_Object; |
The Gtk.Misc.Gtk_Misc widget is an abstract widget which is not useful itself, but is used to derive subclasses which have alignment and padding attributes.
The horizontal and vertical padding attributes allows extra space to be added around the widget.
The horizontal and vertical alignment attributes enable the widget to be positioned within its allocated area. Note that if the widget is added to a container in such a way that it expands automatically to fill its allocated area, the alignment settings will not alter the widgets position.
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 GtkMisc should not be used in new code.