Gtk-- Reference: Gtk::Toolbar

Class Index | Cross Index | Namespace Index

# Class Gtk::Toolbar

Create bars of buttons and other widgets.
Contained in: Gtk
Derived from: Gtk::Container
Derived by: none

#include <gtk--/toolbar.h>

### public function member index:
`` | `Toolbar` | `(`GtkOrientation` `orientation` = GTK_ORIENTATION_HORIZONTAL, `GtkToolbarStyle` `style` = GTK_TOOLBAR_BOTH)`;
``GtkReliefStyle`` | `get_button_relief` | `() `const``;
``GtkOrientation`` | `get_orientation` | `() `const``;
``gint`` | `get_space_size` | `() `const``;
``GtkToolbarSpaceStyle`` | `get_space_style` | `() `const``;
``GtkToolbarStyle`` | `get_style` | `() `const``;
``GtkToolbar`*` | `gtkobj` | `()`;
``const` `GtkToolbar`*` | `gtkobj` | `() `const``;
``static` `bool`` | `isA` | `(`Object`* `object`)`;
``void`` | `set_button_relief` | `(`GtkReliefStyle` `relief`)`;
``void`` | `set_orientation` | `(`GtkOrientation` `orientation`)`;
``void`` | `set_space_size` | `(`gint` `space_size`)`;
``void`` | `set_space_style` | `(`GtkToolbarSpaceStyle` `space_style`)`;
``void`` | `set_style` | `(`GtkToolbarStyle` `style`)`;
``void`` | `set_tooltips` | `(`bool` `enable`)`;
`ToolList&` | `tools` | `()`;
``const` ToolList&` | `tools` | `() `const``;
``virtual`` | `~Toolbar` | `()`;
### protected function member index:
``virtual` `void`` | `orientation_changed_impl` | `(`GtkOrientation` `p0`)`;
``virtual` `void`` | `style_changed_impl` | `(`GtkToolbarStyle` `p0`)`;

## Description:

## Function Member Descriptions:

Gtk::Toolbar::gtkobj - Returns the underlaying gtk+ object.

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

``static` `bool`` `isA``(`Object`* `object`)`;
Gtk::Toolbar::set_orientation - sets whether a toolbar should appear horizontally or vertically.

``void`` `set_orientation``(`GtkOrientation` `orientation`)`;

> `orientation`: A new `GtkOrientation`. This is one of: `GTK_ORIENTATION_HORIZONTAL`, or `GTK_ORIENTATION_VERTICAL`.

Gtk::Toolbar::set_space_size - should be used to set the number of pixels each item of space takes up in a toolbar.

``void`` `set_space_size``(`gint` `space_size`)`;

> `space_size`: The new number of pixels that spaces should consume.

Gtk::Toolbar::set_space_style - sets whether a 'space' in the toolbar appears as a line or just plain empty space.

``void`` `set_space_style``(`GtkToolbarSpaceStyle` `space_style`)`;

> `space_style`: The new style for the toolbar's spaces. This is one of: `GTK_TOOLBAR_SPACE_EMPTY`, or `GTK_TOOLBAR_SPACE_LINE`.

Gtk::Toolbar::set_style - alters the view of toolbar to display either icons only, text only, or both.

``void`` `set_style``(`GtkToolbarStyle` `style`)`;

> `style`: The new style for toolbar. This is one of: `GTK_TOOLBAR_ICONS`, `GTK_TOOLBAR_TEXT`, or `GTK_TOOLBAR_BOTH`.

Gtk::Toolbar::set_tooltips - sets if the tooltips of a toolbar should be active or not.

``void`` `set_tooltips``(`bool` `enable`)`;

> `enable`: Set to 0 to disable the tooltips, or 1 to enable them.

Gtk::Toolbar::tools - Should be used if you wish to perform an action when the orientation of a toolbar is changed. should be used if you wish to perform an action when ever the style of a toolbar is adjusted.

`ToolList&` `tools``()`;

> For example, this would be a useful signal to connect to if you want to display more items on the toolbar when it is in icon-only mode; each item takes less space on the bar.