|
Main Page
Widgets
Namespaces
Book
Bars of buttons and other widgets.
More...
Inheritance diagram for Gtk::Toolbar:
[legend]List of all members.
|
Public Types |
typedef Toolbar_Helpers::ToolList | ToolList |
typedef Toolbar_Helpers::Callback0 | Callback0 |
Public Methods |
virtual | ~Toolbar () |
GtkToolbar* | gobj () |
const GtkToolbar* | gobj () const |
| Toolbar () |
void | set_orientation (Orientation orientation) |
Orientation | get_orientation () const |
| Retrieves the current orientation of the toolbar.
|
void | set_toolbar_style (ToolbarStyle style) |
ToolbarStyle | get_toolbar_style () const |
| Retrieves whether the toolbar has text, icons, or both .
|
void | set_tooltips (bool enable=true) |
bool | get_tooltips () const |
| Retrieves whether tooltips are enabled.
|
void | set_icon_size (IconSize icon_size) |
| This function sets the size of stock icons in the toolbar.
|
IconSize | get_icon_size () const |
| Retrieves the icon size fo the toolbar.
|
void | unset_toolbar_style () |
| Unsets a toolbar style set with set_style(), so that user preferences will be used to determine the toolbar style.
|
void | unset_icon_size () |
| Unsets toolbar icon size set with set_icon_size(), so that user preferences will be used to determine the icon size.
|
Glib::SignalProxy1< void,
Orientation > | signal_orientation_changed () |
Glib::SignalProxy1< void,
ToolbarStyle > | signal_toolbar_style_changed () |
ToolList& | tools () |
| STL-style container.
|
const ToolList& | tools () const |
| STL-style container.
|
Gtk::Widget* | append_item (const Glib::ustring& text, const Glib::ustring& tooltip_text, const Glib::ustring& tooltip_private_text, Gtk::Widget& icon, Callback0 slot) |
Gtk::Widget* | append_item (const Glib::ustring& text, const Glib::ustring& tooltip_text, const Glib::ustring& tooltip_private_text, Callback0 slot) |
Gtk::Widget* | prepend_item (const Glib::ustring& text, const Glib::ustring& tooltip_text, const Glib::ustring& tooltip_private_text, Gtk::Widget& icon, Callback0 slot) |
Gtk::Widget* | prepend_item (const Glib::ustring& text, const Glib::ustring& tooltip_text, const Glib::ustring& tooltip_private_text, Callback0 slot) |
Gtk::Widget* | insert_item (const Glib::ustring& text, const Glib::ustring& tooltip_text, const Glib::ustring& tooltip_private_text, Gtk::Widget& icon, Callback0 slot, int position) |
Gtk::Widget* | insert_item (const Glib::ustring& text, const Glib::ustring& tooltip_text, const Glib::ustring& tooltip_private_text, Callback0 slot, int position) |
Gtk::Widget* | insert_stock (const Gtk::StockID& stock_id, const Glib::ustring& tooltip_text, const Glib::ustring& tooltip_private_text, Callback0 slot, int position) |
void | append_space () |
void | prepend_space () |
void | insert_space (int position) |
void | remove_space (int position) |
| Removes a space from the specified position.
|
void | append_widget (Gtk::Widget& widget, const Glib::ustring& tooltip_text=Glib::ustring(), const Glib::ustring& tooltip_private_text=Glib::ustring()) |
| Adds a widget to the end of the given toolbar.
|
void | prepend_widget (Gtk::Widget& widget, const Glib::ustring& tooltip_text=Glib::ustring(), const Glib::ustring& tooltip_private_text=Glib::ustring()) |
| Adds a widget to the beginning of the given toolbar.
|
void | insert_widget (Gtk::Widget& widget, const Glib::ustring& tooltip_text, const Glib::ustring& tooltip_private_text, int position) |
| Inserts a widget in the toolbar at the given position.
|
Glib::PropertyProxy<Orientation> | property_orientation () |
Glib::PropertyProxy<ToolbarStyle> | property_toolbar_style () |
Protected Methods |
virtual void | on_orientation_changed (Orientation orientation) |
virtual void | on_toolbar_style_changed (ToolbarStyle style) |
Related Functions |
(Note that these are not member functions.)
|
Gtk::Toolbar* | wrap (GtkToolbar* object, bool take_copy=false) |
Detailed Description
Bars of buttons and other widgets.
The STL-style container is available via the tools() method.
Member Typedef Documentation
typedef Toolbar_Helpers::Callback0 Gtk::Toolbar::Callback0
|
|
typedef Toolbar_Helpers::ToolList Gtk::Toolbar::ToolList
|
|
Constructor & Destructor Documentation
virtual Gtk::Toolbar::~Toolbar |
( |
|
) |
[virtual] |
|
Gtk::Toolbar::Toolbar |
( |
|
) |
|
|
Member Function Documentation
void Gtk::Toolbar::append_space |
( |
|
) |
|
|
|
Adds a widget to the end of the given toolbar.
- Parameters:
-
widget | A Gtk::Widget to add to the toolbar. |
tooltip_text | The element's tooltip. |
tooltip_private_text | Used for context-sensitive help about this toolbar element. |
|
IconSize Gtk::Toolbar::get_icon_size |
( |
|
) |
const |
|
|
Retrieves the icon size fo the toolbar.
See set_icon_size(). - Returns:
- The current icon size for the icons on the toolbar.
|
|
Retrieves the current orientation of the toolbar.
See set_orientation(). - Returns:
- The orientation.
|
|
Retrieves whether the toolbar has text, icons, or both .
See set_style(). - Returns:
- The current style of toolbar .
|
bool Gtk::Toolbar::get_tooltips |
( |
|
) |
const |
|
|
Retrieves whether tooltips are enabled.
See set_tooltips(). - Returns:
true if tooltips are enabled.
|
const GtkToolbar* Gtk::Toolbar::gobj |
( |
|
) |
const [inline] |
|
GtkToolbar* Gtk::Toolbar::gobj |
( |
|
) |
[inline] |
|
void Gtk::Toolbar::insert_space |
( |
int |
position |
) |
|
|
|
Inserts a widget in the toolbar at the given position.
- Parameters:
-
widget | A Gtk::Widget to add to the toolbar. |
tooltip_text | The element's tooltip. |
tooltip_private_text | Used for context-sensitive help about this toolbar element. |
position | The number of widgets to insert this widget after. |
|
virtual void Gtk::Toolbar::on_orientation_changed |
( |
Orientation |
orientation |
) |
[protected, virtual] |
|
virtual void Gtk::Toolbar::on_toolbar_style_changed |
( |
ToolbarStyle |
style |
) |
[protected, virtual] |
|
void Gtk::Toolbar::prepend_space |
( |
|
) |
|
|
|
Adds a widget to the beginning of the given toolbar.
- Parameters:
-
widget | A Gtk::Widget to add to the toolbar. |
tooltip_text | The element's tooltip. |
tooltip_private_text | Used for context-sensitive help about this toolbar element. |
|
void Gtk::Toolbar::remove_space |
( |
int |
position |
) |
|
|
|
Removes a space from the specified position.
- Parameters:
-
position | The index of the space to remove. |
|
void Gtk::Toolbar::set_icon_size |
( |
IconSize |
icon_size |
) |
|
|
|
This function sets the size of stock icons in the toolbar.
You can call it both before you add the icons and after they've been added. The size you set will override user preferences for the default icon size. - Parameters:
-
icon_size | The Gtk::IconSize that stock icons in the toolbar shall have. |
|
void Gtk::Toolbar::set_orientation |
( |
Orientation |
orientation |
) |
|
|
void Gtk::Toolbar::set_tooltips |
( |
bool |
enable = true |
) |
|
|
|
- Prototype:
void orientation_changed(Orientation orientation)
|
|
- Prototype:
void toolbar_style_changed(ToolbarStyle style)
|
const ToolList& Gtk::Toolbar::tools |
( |
|
) |
const |
|
void Gtk::Toolbar::unset_icon_size |
( |
|
) |
|
|
|
Unsets toolbar icon size set with set_icon_size(), so that user preferences will be used to determine the icon size.
|
void Gtk::Toolbar::unset_toolbar_style |
( |
|
) |
|
|
|
Unsets a toolbar style set with set_style(), so that user preferences will be used to determine the toolbar style.
|
Friends And Related Function Documentation
Gtk::Toolbar* wrap |
( |
GtkToolbar* |
object, |
|
|
bool |
take_copy = false |
|
) |
[related] |
|
The documentation for this class was generated from the following file:
Generated for gtkmm by
Doxygen 1.3-rc1 © 1997-2001
|