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.
Widget Hierarchy |
---|
GObject (see section Package Glib.Object) Gtk_Object (see section Package Gtk.Object) \___ Gtk_Widget (see section Package Gtk.Widget) \___ Gtk_Container (see section Package Gtk.Container) \___ Gtk_Bin (see section Package Gtk.Bin) \___ Gtk_Frame (see section Package Gtk.Frame) |
Subprograms |
---|
procedure Gtk_New (Frame : out Gtk_Frame; Label : UTF8_String := ""); | ||
Create a new frame. | ||
function Get_Type return Glib.GType; | ||
Return the internal value associated with a Gtk_Frame.
| ||
procedure Set_Label (Frame : access Gtk_Frame_Record; Label : UTF8_String := ""); | ||
Change the label of the frame dynamically. | ||
function Get_Label (Frame : access Gtk_Frame_Record) return UTF8_String; | ||
Return the label associated with the frame.
| ||
procedure Set_Label_Widget (Frame : access Gtk_Frame_Record; Label_Widget : access Gtk.Widget.Gtk_Widget_Record'Class); | ||
Set the label widget for the frame. | ||
procedure Set_Label_Align (Frame : access Gtk_Frame_Record; Xalign : Gfloat := 0.0; Yalign : Gfloat := 0.0); | ||
Change the alignment of the title in the frame. | ||
procedure Get_Label_Align (Frame : access Gtk_Frame_Record; Xalign : out Gfloat; Yalign : out Gfloat); | ||
Return the X and Y alignments of the title in the frame.
| ||
procedure Set_Shadow_Type (Frame : access Gtk_Frame_Record; The_Type : Gtk_Shadow_Type); | ||
Change the visual aspect of the frame.
| ||
function Get_Shadow_Type (Frame : access Gtk_Frame_Record) return Gtk_Shadow_Type; | ||
Return the visual aspect of the frame.
|