package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Frame_Record, Gtk_Frame);
type Gtk_Frame_Record is new Gtk_Bin_Record with null record;
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 | : not null access Gtk_Frame_Record'Class; |
Label | : UTF8_String := ""); |
function Gtk_Frame_New
( | Label | : UTF8_String := "") return Gtk_Frame; |
function Get_Type return Glib.GType;
function Get_Label
( | Frame | : not null access Gtk_Frame_Record) return UTF8_String; |
procedure Set_Label
( | Frame | : not null access Gtk_Frame_Record; |
Label | : UTF8_String := ""); |
procedure Get_Label_Align
( | Frame | : not null access Gtk_Frame_Record; |
Xalign | : out Gfloat; | |
Yalign | : out Gfloat); |
procedure Set_Label_Align
( | Frame | : not null access Gtk_Frame_Record; |
Xalign | : Gfloat; | |
Yalign | : Gfloat); |
function Get_Label_Widget
( | Frame | : not null access Gtk_Frame_Record) return Gtk.Widget.Gtk_Widget; |
procedure Set_Label_Widget
( | Frame | : not null access Gtk_Frame_Record; |
Label_Widget | : not null access Gtk.Widget.Gtk_Widget_Record'Class); |
function Get_Shadow_Type
( | Frame | : not null access Gtk_Frame_Record) return Gtk.Enums.Gtk_Shadow_Type; |
procedure Set_Shadow_Type
( | Frame | : not null access Gtk_Frame_Record; |
The_Type | : Gtk.Enums.Gtk_Shadow_Type); |
function "+"
( | Widget | : access Gtk_Frame_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Frame renames Implements_Gtk_Buildable.To_Object; |
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.