package Implements_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Aspect_Frame_Record, Gtk_Aspect_Frame);
type Gtk_Aspect_Frame_Record is new Gtk_Frame_Record with null record;
type Gtk_Aspect_Frame is access all Gtk_Aspect_Frame_Record'Class;
Obey_Child_Property : constant Glib.Properties.Property_Boolean;
Ratio_Property : constant Glib.Properties.Property_Float;
Xalign_Property : constant Glib.Properties.Property_Float;
Yalign_Property : constant Glib.Properties.Property_Float;
procedure Gtk_New
( | Aspect_Frame | : out Gtk_Aspect_Frame; |
Label | : UTF8_String := ""; | |
Xalign | : Gfloat; | |
Yalign | : Gfloat; | |
Ratio | : Gfloat; | |
Obey_Child | : Boolean); |
procedure Initialize
( | Aspect_Frame | : access Gtk_Aspect_Frame_Record'Class; |
Label | : UTF8_String := ""; | |
Xalign | : Gfloat; | |
Yalign | : Gfloat; | |
Ratio | : Gfloat; | |
Obey_Child | : Boolean); |
function Get_Type return Glib.GType;
procedure Set
( | Aspect_Frame | : access Gtk_Aspect_Frame_Record; |
Xalign | : Gfloat; | |
Yalign | : Gfloat; | |
Ratio | : Gfloat; | |
Obey_Child | : Boolean); |
function Get_Xalign
( | Aspect_Frame | : access Gtk_Aspect_Frame_Record) return Gfloat; |
function Get_Yalign
( | Aspect_Frame | : access Gtk_Aspect_Frame_Record) return Gfloat; |
function Get_Ratio
( | Aspect_Frame | : access Gtk_Aspect_Frame_Record) return Gfloat; |
function "+"
( | Widget | : access Gtk_Aspect_Frame_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Aspect_Frame renames Implements_Buildable.To_Object; |
A Gtk_Aspect_Frame is the same type of widget as a frame, but it constrains its child to a specific aspect ratio between its width and its height.
This ratio can either be given explicitly by the user, or chosen from the widget's initial size request (might be different from the one if was actually given).