Gtk-- Reference: Gtk::ButtonBox

Class Index | Cross Index | Namespace Index

# Class Gtk::ButtonBox

Base class for ``Gtk::HButtonBox`` and ``Gtk::VButtonBox``.
Contained in: Gtk
Derived from: Gtk::Box
Derived by: Gtk::HButtonBox Gtk::VButtonBox

#include <gtk--/buttonbox.h>

### public function member index:
``gint`` | `get_child_ipadding_default_x` | `() `const``;
``gint`` | `get_child_ipadding_default_y` | `() `const``;
``gint`` | `get_child_ipadding_x` | `() `const``;
``gint`` | `get_child_ipadding_y` | `() `const``;
``gint`` | `get_child_size_default_height` | `() `const``;
``gint`` | `get_child_size_default_width` | `() `const``;
``gint`` | `get_child_size_height` | `() `const``;
``gint`` | `get_child_size_width` | `() `const``;
``GtkButtonBoxStyle`` | `get_layout` | `() `const``;
``gint`` | `get_spacing` | `() `const``;
``GtkButtonBox`*` | `gtkobj` | `()`;
``const` `GtkButtonBox`*` | `gtkobj` | `() `const``;
``static` `bool`` | `isA` | `(`Object`* `object`)`;
``void`` | `set_child_ipadding` | `(`gint` `ipad_x`, `gint` `ipad_y`)`;
``static` `void`` | `set_child_ipadding_default` | `(`gint` `ipad_x`, `gint` `ipad_y`)`;
``void`` | `set_child_size` | `(`gint` `min_width`, `gint` `min_height`)`;
``static` `void`` | `set_child_size_default` | `(`gint` `min_width`, `gint` `min_height`)`;
``void`` | `set_layout` | `(`GtkButtonBoxStyle` `layout_style`)`;
``void`` | `set_layout_spacing` | `(`GtkButtonBoxStyle` `layout`, `gint` `spacing`)`;
``void`` | `set_spacing` | `(`gint` `spacing`)`;
``virtual`` | `~ButtonBox` | `()`;

## Description:

The primary purpose of this class is to keep track of the various properties of ``Gtk::HButtonBox`` and ``Gtk::VButtonBox`` widgets.

## Function Member Descriptions:

Gtk::ButtonBox::get_child_ipadding_default_x - This function gets the default amount of horizontal padding.

``gint`` `get_child_ipadding_default_x``() `const``;

> The internal padding of a button is the amount of space between the outside of the button and the widget it contains.

Gtk::ButtonBox::get_child_ipadding_default_y - This function gets the default amount of vertical padding.

``gint`` `get_child_ipadding_default_y``() `const``;

> The internal padding of a button is the amount of space between the outside of the button and the widget it contains.

Gtk::ButtonBox::get_child_size_default_height - Retrieves the default minimum height for all buttons.

``gint`` `get_child_size_default_height``() `const``;
Gtk::ButtonBox::get_child_size_default_width - Retrieves the default minimum width for all buttons.

``gint`` `get_child_size_default_width``() `const``;
Gtk::ButtonBox::gtkobj - Returns the underlaying gtk+ object.

``GtkButtonBox`*` `gtkobj``()`;
Gtk::ButtonBox::isA - Returns true if object is this type.

``static` `bool`` `isA``(`Object`* `object`)`;
Gtk::ButtonBox::set_child_ipadding - Changes the amount of internal padding used by all buttons in a button box.

``void`` `set_child_ipadding``(`gint` `ipad_x`, `gint` `ipad_y`)`;

> ipad_x: The horizontal padding that should be used by each button the widget.

> ipad_y: The vertical padding that should be used by each button the widget.

Gtk::ButtonBox::set_child_size - Sets a new default size for the children of a button box.

``void`` `set_child_size``(`gint` `min_width`, `gint` `min_height`)`;

> min_width: A default width for buttons in the widget.

> min_height: A default height for buttons in the widget.

Gtk::ButtonBox::set_child_size_default - Sets the default size of child buttons.

``static` `void`` `set_child_size_default``(`gint` `min_width`, `gint` `min_height`)`;

> min_width: Minimum default width for child buttons.

> min_height: Minimum default height for child buttons.

Gtk::ButtonBox::set_layout - Changes the way buttons are arranged in their container.

``void`` `set_layout``(`GtkButtonBoxStyle` `layout_style`)`;

> layout_style: The new layout style. Can be one of `GTK_BUTTONBOX_DEFAULT_STYLE`, `GTK_BUTTONBOX_SPREAD`, `GTK_BUTTONBOX_EDGE`, `GTK_BUTTONBOX_START`, `GTK_BUTTONBOX_END`

Gtk::ButtonBox::set_spacing - Sets the amount of spacing between buttons in a button box.

``void`` `set_spacing``(`gint` `spacing`)`;

> spacing: The number of pixels of spacing.