type Gtk_Aspect_Frame_Record is new Gtk.Frame.Gtk_Frame_Record with private;
type Gtk_Aspect_Frame is access all Gtk_Aspect_Frame_Record'Class;
Xalign_Property : constant Glib.Properties.Property_Float;
Yalign_Property : constant Glib.Properties.Property_Float;
Radio_Property : constant Glib.Properties.Property_Float;
Obey_Child_Property : constant Glib.Properties.Property_Boolean;
Ratio_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 Gtk.Gtk_Type;
procedure Set
( | Aspect_Frame | : access Gtk_Aspect_Frame_Record; |
Xalign | : Gfloat; | |
Yalign | : Gfloat; | |
Ratio | : Gfloat; | |
Obey_Child | : Boolean); |
function Get_Ratio
( | Aspect_Frame | : access Gtk_Aspect_Frame_Record) return Gfloat; |
function Get_Xalign
( | Aspect_Frame | : access Gtk_Aspect_Frame_Record) return Gfloat; |
function Get_Yalign
( | Aspect_Frame | : access Gtk_Aspect_Frame_Record) return Gfloat; |
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).
Binding from C File version 2.8.17
<testgtk>create_frame.adb</testgtk>