GtkAda Reference Manual - Package Gtk.Button_Box

[Contents] [Back] [Prev] [Up] [Next] [Forward]

# Package Gtk.Button`_`Box

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.

- Gtk.Button_Box Widget Hierarchy
- Gtk.Button_Box Subprograms

## 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_Box         (see section Package Gtk.Box)
                \___ Gtk_Button_Box (see section 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: Buttonbox_Spread: The children are spread regularly across the box Buttonbox_Edge : Same as Spread, except that the first and last children are aligned on the border of the box. Buttonbox_Start : The children are put as much to the left (resp. top) as possible in the box. Buttonbox_End : The children are put as much to the right (resp. bottom) as possible in the box.
    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.

[Contents] [Back] [Prev] [Up] [Next] [Forward]