---
name: "Gtk_Toolbar"
section: "3"
platform: "linux"
package: "libgtkmm-dev"
version: "1.0.3-1.1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk_Toolbar"
---

# Gtk\_Toolbar(3)

## NAME - Gtk\_Toolbar

## HEADER REQUIRED

**#include \<gtk--/toolbar.h&gt;\>**

## BASE CLASSES

[Gtk\_Container(3)](/Gtk_Container/3.md)

## PROPERTIES

- *num\_children*

  Type: gint\

- *children*

  Type: GList\*\

- *orientation*

  Type: GtkOrientation\

- *style*

  Type: GtkToolbarStyle\

- *space\_size*

  Type: gint\

-

   big optional space between buttons \

- *space\_style*

  Type: GtkToolbarSpaceStyle\

- *tooltips*

  Type: GtkTooltips\*\

- *button\_maxw*

  Type: gint\

- *button\_maxh*

  Type: gint\

- *relief*

  Type: GtkReliefStyle\

-

   .IP

## PUBLIC MEMBER INDEX

```
Gtk_Toolbar(GtkOrientation orientation = GTK_ORIENTATION_HORIZONTAL, GtkToolbarStyle style = GTK_TOOLBAR_BOTH);
Gtk_Toolbar(GtkToolbar *castitem);
~Gtk_Toolbar();
template  Gtk_Widget*  append_item(const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const Gtk_Pixmap &icon, RECEIVER *receiver, void (RECEIVER::*method)(ARG_TYPE), ARG_TYPE user_data);
  All the *_item() and *_element() methods return allocatedthe "item" here is actually a button. Those should really be
template  Gtk_Widget*  prepend_item(const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const Gtk_Pixmap &icon, RECEIVER *receiver, void (RECEIVER::*method)(ARG_TYPE), ARG_TYPE user_data);
template  Gtk_Widget*  insert_item(const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const Gtk_Pixmap &icon, RECEIVER *receiver, void (RECEIVER::*method)(ARG_TYPE), ARG_TYPE user_data, gint position);
template  Gtk_Widget*  append_element(GtkToolbarChildType child_type, const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const Gtk_Pixmap &icon, RECEIVER *receiver, void (RECEIVER::*method)(ARG_TYPE), ARG_TYPE user_data);
  These are slightly more restricted than their gtk counterparts :
template  Gtk_Widget*  prepend_element(GtkToolbarChildType child_type, const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const Gtk_Pixmap &icon, RECEIVER *receiver, void (RECEIVER::*method)(ARG_TYPE), ARG_TYPE user_data);
template  Gtk_Widget*  insert_element(GtkToolbarChildType child_type, const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const Gtk_Pixmap &icon, RECEIVER *receiver, void (RECEIVER::*method)(ARG_TYPE), ARG_TYPE user_data, gint position);
template  Gtk_Widget*  append_element(GtkToolbarChildType child_type, const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, RECEIVER *receiver, void (RECEIVER::*method)(ARG_TYPE), ARG_TYPE user_data);
template  Gtk_Widget*  prepend_element(GtkToolbarChildType child_type, const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, RECEIVER *receiver, void (RECEIVER::*method)(ARG_TYPE), ARG_TYPE user_data);
template  Gtk_Widget*  insert_element(GtkToolbarChildType child_type, const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, RECEIVER *receiver, void (RECEIVER::*method)(ARG_TYPE), ARG_TYPE user_data, gint position);
Gtk_Button*  append_button(const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const Gtk_Pixmap &icon, const ToolbarConnectorBase &connector, GtkToolbarChildType button_type = GTK_TOOLBAR_CHILD_BUTTON);
  Those are Gtk-- "originals" with no equivalents in the original
Gtk_Button*  prepend_button(const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const Gtk_Pixmap &icon, const ToolbarConnectorBase &connector, GtkToolbarChildType button_type = GTK_TOOLBAR_CHILD_BUTTON);
Gtk_Button*  insert_button(const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const Gtk_Pixmap &icon, const ToolbarConnectorBase &connector, gint position, GtkToolbarChildType button_type = GTK_TOOLBAR_CHILD_BUTTON);
Gtk_Button*  append_button(const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const ToolbarConnectorBase &connector, GtkToolbarChildType button_type = GTK_TOOLBAR_CHILD_BUTTON);
Gtk_Button*  prepend_button(const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const ToolbarConnectorBase &connector, GtkToolbarChildType button_type = GTK_TOOLBAR_CHILD_BUTTON);
Gtk_Button*  insert_button(const _gtk_string &text, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, const ToolbarConnectorBase &connector, gint position, GtkToolbarChildType button_type = GTK_TOOLBAR_CHILD_BUTTON);
void  append_widget(const Gtk_Widget &widget, const _gtk_string &tooltip_text = "", const _gtk_string &tooltip_private_text = "");
void  prepend_widget(const Gtk_Widget &widget, const _gtk_string &tooltip_text = "", const _gtk_string &tooltip_private_text = "");
void  insert_widget(const Gtk_Widget &widget, const _gtk_string &tooltip_text, const _gtk_string &tooltip_private_text, gint position);
void  append_space();
void  prepend_space();
void  insert_space(gint position);
GtkOrientation  get_orientation() const;
void  set_orientation(GtkOrientation orientation);
GtkToolbarStyle  get_style() const;
void  set_style(GtkToolbarStyle style);
gint  get_space_size() const;
void  set_space_size(gint space_size);
void  set_tooltips(bool enable);
void  set_button_relief(GtkReliefStyle relief);
GtkReliefStyle  get_button_relief();
void  set_space_style(GtkToolbarSpaceStyle space_style);
signal void  orientation_changed(GtkOrientation);
signal void  style_changed(GtkToolbarStyle);
GtkToolbar*  gtkobj();
const GtkToolbar*  gtkobj() const;
static bool  isGtkToolbar(Gtk_Object *checkcast);
```

## PROTECTED MEMBER INDEX

```
friend  CppClassType;
typedef GtkToolbar  BaseObjectType;
typedef GtkToolbarClass  BaseClassType;
virtual void * get_parent_class();
virtual void  orientation_changed_impl(GtkOrientation p1);
virtual void  style_changed_impl(GtkToolbarStyle p1);
G_List * children_;
  This list is used to store the Gtk_Widgets constructed from thecreated items so they can be properly destroyed
```

## PRIVATE MEMBER INDEX

```
static CppClassType  toolbar_class;
GtkType  get_type();
```

## PUBLIC MEMBER DESCRIPTIONS

## PROTECTED MEMBER DESCRIPTIONS

## PRIVATE MEMBER DESCRIPTIONS
