type Gtk_Frame_Record is new Gtk.Bin.Gtk_Bin_Record with private;
type Gtk_Frame is access all Gtk_Frame_Record'Class;
Label_Property : constant Glib.Properties.Property_String;
Label_Widget_Property : constant Glib.Properties.Property_Object;
Label_Xalign_Property : constant Glib.Properties.Property_Float;
Label_Yalign_Property : constant Glib.Properties.Property_Float;
Shadow_Type_Property : constant Gtk.Enums.Property_Gtk_Shadow_Type;
procedure Gtk_New
( | Frame | : out Gtk_Frame; |
Label | : UTF8_String := ""); |
procedure Initialize
( | Frame | : access Gtk_Frame_Record'Class; |
Label | : UTF8_String := ""); |
function Get_Type return Glib.GType;
procedure Set_Label
( | Frame | : access Gtk_Frame_Record; |
Label | : UTF8_String := ""); |
function Get_Label
( | Frame | : access Gtk_Frame_Record) return UTF8_String; |
procedure Set_Label_Widget
( | Frame | : access Gtk_Frame_Record; |
Label_Widget | : access Gtk.Widget.Gtk_Widget_Record'Class); |
function Get_Label_Widget
( | Frame | : access Gtk_Frame_Record) return Gtk.Widget.Gtk_Widget; |
procedure Set_Label_Align
( | Frame | : access Gtk_Frame_Record; |
Xalign | : Gfloat := 0.0; | |
Yalign | : Gfloat := 0.0); |
procedure Get_Label_Align
( | Frame | : access Gtk_Frame_Record; |
Xalign | : out Gfloat; | |
Yalign | : out Gfloat); |
procedure Set_Shadow_Type
( | Frame | : access Gtk_Frame_Record; |
The_Type | : Gtk_Shadow_Type); |
function Get_Shadow_Type
( | Frame | : access Gtk_Frame_Record) return Gtk_Shadow_Type; |
A Gtk_Frame is a simple border than can be added to any widget or group of widget to enhance its visual aspect.
Optionally, a frame can have a title.
This is a very convenient widget to visually group related widgets (like groups of buttons for instance), possibly with a title to explain the purpose of this group.
A Gtk_Frame has only one child, so you have to put a container like for instance a Gtk_Box inside if you want the frame to surround multiple widgets.
Binding from C File version 2.8.17
<testgtk>create_frame.adb</testgtk>