package Implements_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_Property : constant Gtk.Enums.Property_Gtk_Shadow_Type;
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;
function Get_Label
( | Frame | : access Gtk_Frame_Record) return UTF8_String; |
procedure Set_Label
( | Frame | : access Gtk_Frame_Record; |
Label | : UTF8_String); |
procedure Get_Label_Align
( | Frame | : access Gtk_Frame_Record; |
Xalign | : out Gfloat; | |
Yalign | : out Gfloat); |
procedure Set_Label_Align
( | Frame | : access Gtk_Frame_Record; |
Xalign | : Gfloat; | |
Yalign | : Gfloat); |
function Get_Label_Widget
( | Frame | : access Gtk_Frame_Record) return Gtk.Widget.Gtk_Widget; |
procedure Set_Label_Widget
( | Frame | : access Gtk_Frame_Record; |
Label_Widget | : access Gtk.Widget.Gtk_Widget_Record'Class); |
function Get_Shadow_Type
( | Frame | : access Gtk_Frame_Record) return Gtk.Enums.Gtk_Shadow_Type; |
procedure Set_Shadow_Type
( | Frame | : 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_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Frame renames Implements_Buildable.To_Object; |
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.