A 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.
<screenshot>gtk-button_box</screenshot> <group>Layout containers</group> <testgtk>create_button_box.adb</testgtk>
function "+"
(Widget : access Gtk_Button_Box_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "+"
(Widget : access Gtk_Button_Box_Record'Class)
return Gtk.Orientable.Gtk_Orientable
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Button_Box
function "-"
(Interf : Gtk.Orientable.Gtk_Orientable)
return Gtk_Button_Box
function Get_Child_Non_Homogeneous
(Widget : not null access Gtk_Button_Box_Record;
Child : not null access Gtk.Widget.Gtk_Widget_Record'Class)
return Boolean
Returns whether the child is exempted from homogenous sizing. Since: gtk+ 3.2
a child of Widget
True if the child is not subject to homogenous sizing
function Get_Child_Secondary
(Widget : not null access Gtk_Button_Box_Record;
Child : not null access Gtk.Widget.Gtk_Widget_Record'Class)
return Boolean
Returns whether Child should appear in a secondary group of children. Since: gtk+ 2.4
a child of Widget
whether Child should appear in a secondary group of children.
function Get_Layout
(Widget : not null access Gtk_Button_Box_Record)
return Gtk.Enums.Gtk_Button_Box_Style
Retrieves the method being used to arrange the buttons in a button box.
the method used to lay out buttons in Widget.
function Get_Orientation
(Self : not null access Gtk_Button_Box_Record)
return Gtk.Enums.Gtk_Orientation
function Get_Type return Glib.GType
type Gtk_Button_Box is access all Gtk_Button_Box_Record'Class;
function Gtk_Button_Box_New
(Orientation : Gtk.Enums.Gtk_Orientation) return Gtk_Button_Box
Creates a new Gtk.Button_Box.Gtk_Button_Box. Since: gtk+ 3.0
the box's orientation.
type Gtk_Button_Box_Record is new Gtk_Box_Record with null record;
procedure Gtk_New
(Widget : out Gtk_Button_Box;
Orientation : Gtk.Enums.Gtk_Orientation)
Creates a new Gtk.Button_Box.Gtk_Button_Box. Since: gtk+ 3.0 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the box's orientation.
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Button_Box_Record, Gtk_Button_Box);
package Implements_Gtk_Orientable is new Glib.Types.Implements
(Gtk.Orientable.Gtk_Orientable, Gtk_Button_Box_Record, Gtk_Button_Box);
procedure Initialize
(Widget : not null access Gtk_Button_Box_Record'Class;
Orientation : Gtk.Enums.Gtk_Orientation)
Creates a new Gtk.Button_Box.Gtk_Button_Box. Since: gtk+ 3.0 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the box's orientation.
Layout_Style_Property : constant Gtk.Enums.Property_Gtk_Button_Box_Style;
procedure Set_Child_Non_Homogeneous
(Widget : not null access Gtk_Button_Box_Record;
Child : not null access Gtk.Widget.Gtk_Widget_Record'Class;
Non_Homogeneous : Boolean)
Sets whether the child is exempted from homogeous sizing. Since: gtk+ 3.2
a child of Widget
the new value
procedure Set_Child_Secondary
(Widget : not null access Gtk_Button_Box_Record;
Child : not null access Gtk.Widget.Gtk_Widget_Record'Class;
Is_Secondary : Boolean)
Sets 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 Gtk.Enums.Buttonbox_Start, Gtk.Enums.Buttonbox_Spread or Gtk.Enums.Buttonbox_Edge, and before the other children if the style is Gtk.Enums.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 Gtk.Enums.Buttonbox_Start or Gtk.Enums.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.
a child of Widget
if True, the Child appears in a secondary group of the button box.
procedure Set_Layout
(Widget : not null access Gtk_Button_Box_Record;
Layout_Style : Gtk.Enums.Gtk_Button_Box_Style)
Changes the way buttons are arranged in their container.
the new layout style
procedure Set_Orientation
(Self : not null access Gtk_Button_Box_Record;
Orientation : Gtk.Enums.Gtk_Orientation)