Class: Gtk::ButtonBox

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#get_child_non_homogeneous(child) ⇒ TrueClass

Returns whether the child is exempted from homogenous sizing.

Parameters:

Returns:

  • (TrueClass)

    true if the child is not subject to homogenous sizing

#get_child_secondary(child) ⇒ TrueClass

Returns whether child should appear in a secondary group of children.

Parameters:

Returns:

  • (TrueClass)

    whether child should appear in a secondary group of children.

#layoutGtk::ButtonBoxStyle

Retrieves the method being used to arrange the buttons in a button box.

Returns:

#layout=(layout_style) ⇒ nil

Changes the way buttons are arranged in their container.

Parameters:

Returns:

  • (nil)

#layout_styleGtk::ButtonBoxStyle

Returns layout-style.

Returns:

#layout_style=(layout_style) ⇒ Gtk::ButtonBoxStyle

Parameters:

Returns:

#new(orientation) ⇒ Gtk::Widget

Creates a new Gtk::ButtonBox.

Parameters:

Returns:

#set_child_non_homogeneous(child, non_homogeneous) ⇒ nil

Sets whether the child is exempted from homogeous sizing.

Parameters:

  • child (Gtk::Widget)

    a child of widget

  • non_homogeneous (TrueClass)

    the new value

Returns:

  • (nil)

#set_child_secondary(child, is_secondary) ⇒ nil

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_BUTTONBOX_START, %GTK_BUTTONBOX_SPREAD or %GTK_BUTTONBOX_EDGE, and before the other children if the style is %GTK_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_BUTTONBOX_START or %GTK_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:

  • child (Gtk::Widget)

    a child of widget

  • is_secondary (TrueClass)

    if true, the child appears in a secondary group of the button box.

Returns:

  • (nil)