_
BoxA Gtk_Button_Box is a special type of Gtk_Box specially tailored to contain buttons.
This is only a base class for Gtk_Hbutton_Box and Gtk_Vbutton_Box which provide a way to arrange their children horizontally (resp. vertically). You can not instantiate a Gtk_Button_Box directly, and have to use one the above two instead.
Widget Hierarchy |
---|
GObject (see Package_Glib.Object) Gtk_Object (see Package_Gtk.Object) \___ Gtk_Widget (see Package_Gtk.Widget) \___ Gtk_Container (see Package_Gtk.Container) \___ Gtk_Box (see Package_Gtk.Box) \___ Gtk_Button_Box (see Package_Gtk.Button_Box) |
Subprograms |
---|
function Get_Type return Gtk.Gtk_Type; |
Return the internal value associated with a Gtk_Button_Box. |
procedure Set_Layout (Button_Box : access Gtk_Button_Box_Record; Layout_Style : Enums.Gtk_Button_Box_Style); |
Set the layout to use for the box. There are four such styles:
|
function Get_Layout (Button_Box : access Gtk_Button_Box_Record) return Enums.Gtk_Button_Box_Style; |
Return the layout used in the box. |
procedure Set_Child_Secondary (Button_Box : access Gtk_Button_Box_Record; Child : access Gtk.Widget.Gtk_Widget_Record'Class; Is_Secondary : Boolean); |
Set whether Child should appear in a secondary group of children. A typical use of a secondary child is the help button in a dialog. This group appears after the other children if the style is Buttonbox_Start, Buttonbox_Spread or Buttonbox_Edge, and before the other children if the style is Buttonbox_End. For horizontal button boxes, the definition of before/after depends on direction of the widget. (See Gtk.Widget.Set_Direction) If the style is Buttonbox_Start, or Buttonbox_End, then the secondary children are aligned at the other end of the button box from the main children. For the other styles, they appear immediately next to the main children. Is_Secondary: if True, the Child appears in a secondary group of the button box. |