Gtk.Button_Box

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

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
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Button_Box_Record'Class)
return Gtk.Orientable.Gtk_Orientable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Button_Box
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Orientable.Gtk_Orientable)
return Gtk_Button_Box
Parameters
Interf
Return Value

Get_Child_Non_Homogeneous

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

Parameters
Widget
Child

a child of Widget

Return Value

True if the child is not subject to homogenous sizing

Get_Child_Secondary

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

Parameters
Widget
Child

a child of Widget

Return Value

whether Child should appear in a secondary group of children.

Get_Layout

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.

Parameters
Widget
Return Value

the method used to lay out buttons in Widget.

Get_Orientation

function Get_Orientation
   (Self : not null access Gtk_Button_Box_Record)
    return Gtk.Enums.Gtk_Orientation
Parameters
Self
Return Value

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Button_Box

type Gtk_Button_Box is access all Gtk_Button_Box_Record'Class;

Gtk_Button_Box_New

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

Parameters
Orientation

the box's orientation.

Return Value

Gtk_Button_Box_Record

type Gtk_Button_Box_Record is new Gtk_Box_Record with null record;

Gtk_New

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.

Parameters
Widget
Orientation

the box's orientation.

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Button_Box_Record, Gtk_Button_Box);

Implements_Gtk_Orientable

package Implements_Gtk_Orientable is new Glib.Types.Implements
  (Gtk.Orientable.Gtk_Orientable, Gtk_Button_Box_Record, Gtk_Button_Box);

Initialize

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.

Parameters
Widget
Orientation

the box's orientation.

Layout_Style_Property

Layout_Style_Property : constant Gtk.Enums.Property_Gtk_Button_Box_Style;

Set_Child_Non_Homogeneous

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

Parameters
Widget
Child

a child of Widget

Non_Homogeneous

the new value

Set_Child_Secondary

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.

Parameters
Widget
Child

a child of Widget

Is_Secondary

if True, the Child appears in a secondary group of the button box.

Set_Layout

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.

Parameters
Widget
Layout_Style

the new layout style

Set_Orientation

procedure Set_Orientation
   (Self        : not null access Gtk_Button_Box_Record;
    Orientation : Gtk.Enums.Gtk_Orientation)
Parameters
Self
Orientation