The STL-style container is available via the tools() method.
|
Public Member Functions |
virtual | ~Toolbar () |
GtkToolbar* | gobj () |
| Provides access to the underlying C GtkObject.
|
const GtkToolbar* | gobj () const |
| Provides access to the underlying C GtkObject.
|
| Toolbar () |
void | insert (ToolItem& item, int pos) |
| Insert a Gtk::ToolItem into the toolbar at position pos .
|
void | insert (ToolButton& item, int pos, const sigc::slot<void>& clicked_slot) |
void | insert (ToggleToolButton& item, int pos, const sigc::slot<void>& toggled_slot) |
void | append (ToolItem& item) |
void | append (ToolButton& item, const sigc::slot<void>& clicked_slot) |
void | append (ToggleToolButton& item, const sigc::slot<void>& toggled_slot) |
void | prepend (ToolItem& item) |
void | prepend (ToolButton& item, const sigc::slot<void>& clicked_slot) |
void | prepend (ToggleToolButton& item, const sigc::slot<void>& toggled_slot) |
int | get_item_index (const ToolItem& item) const |
| Returns the position of item on the toolbar, starting from 0.
|
int | get_n_items () const |
| Returns the number of items on the toolbar.
|
ToolItem* | get_nth_item (int n) |
| Returns the n <!-- -->'s item on toolbar , or 0 if the toolbar does not contain an n <!-- -->'th item.
|
const ToolItem* | get_nth_item (int n) const |
| Returns the n <!-- -->'s item on toolbar , or 0 if the toolbar does not contain an n <!-- -->'th item.
|
bool | get_show_arrow () const |
| Returns whether the toolbar has an overflow menu.
|
void | set_show_arrow (bool show_arrow=true) |
| Sets whether to show an overflow menu when toolbar doesn't have room for all items on it.
|
void | set_orientation (Orientation orientation) |
| Sets whether a toolbar should appear horizontally or vertically.
|
Orientation | get_orientation () const |
| Retrieves the current orientation of the toolbar.
|
void | set_toolbar_style (ToolbarStyle style) |
| Alters the view of toolbar to display either icons only, text only, or both.
|
ToolbarStyle | get_toolbar_style () const |
| Retrieves whether the toolbar has text, icons, or both .
|
void | set_tooltips (bool enable=true) |
| Sets if the tooltips of a toolbar should be active or not.
|
bool | get_tooltips () const |
| Retrieves whether tooltips are enabled.
|
void | unset_toolbar_style () |
| Unsets a toolbar style set with set_style(), so that user preferences will be used to determine the toolbar style.
|
IconSize | get_icon_size () const |
| Retrieves the icon size fo the toolbar.
|
ReliefStyle | get_relief_style () const |
| Returns the relief style of buttons on toolbar .
|
int | get_drop_index (int x, int y) const |
| Returns the position corresponding to the indicated point on toolbar .
|
void | set_drop_highlight_item (ToolItem& tool_item, int index) |
| Highlights toolbar to give an idea of what it would look like if item was added to toolbar at position indicated by index .
|
void | unset_drop_highlight_item () |
Glib::SignalProxy1< void,
Orientation > | signal_orientation_changed () |
Glib::SignalProxy1< void,
ToolbarStyle > | signal_toolbar_style_changed () |
Glib::SignalProxy3< bool,
int, int, int > | signal_popup_context_menu () |
Tooltips* | get_tooltips_object () const |
Glib::PropertyProxy<Orientation> | property_orientation () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Glib::PropertyProxy_ReadOnly<
Orientation > | property_orientation () const |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Glib::PropertyProxy<ToolbarStyle> | property_toolbar_style () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Glib::PropertyProxy_ReadOnly<
ToolbarStyle > | property_toolbar_style () const |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Glib::PropertyProxy<bool> | property_show_arrow () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Glib::PropertyProxy_ReadOnly<
bool > | property_show_arrow () const |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Protected Member Functions |
virtual void | on_orientation_changed (Orientation orientation) |
virtual void | on_toolbar_style_changed (ToolbarStyle style) |
virtual bool | on_popup_context_menu (int x, int y, int button_number) |
Related Functions |
(Note that these are not member functions.)
|
Gtk::Toolbar* | wrap (GtkToolbar* object, bool take_copy=false) |