![]() |
![]() |
Public Member Functions | |
virtual | ~ToolItem () |
GtkToolItem* | gobj () |
Provides access to the underlying C GtkObject. | |
const GtkToolItem* | gobj () const |
Provides access to the underlying C GtkObject. | |
ToolItem () | |
void | set_homogeneous (bool homogeneous=true) |
Sets whether tool_item is to be allocated the same size as other homogeneous items. | |
bool | get_homogeneous () const |
Returns whether tool_item is the same size as other homogeneous items. | |
void | set_expand (bool expand=true) |
Sets whether tool_item is allocated extra space when there is more room on the toolbar then needed for the items. | |
bool | get_expand () const |
Returns whether tool_item is allocated extra space. | |
void | set_tooltip (Tooltips& tooltips, const Glib::ustring& tip_text, const Glib::ustring& tip_private=Glib::ustring()) |
Sets the Gtk::Tooltips object to be used for tool_item , the text to be displayed as tooltip on the item and the private text to be used. | |
void | set_use_drag_window (bool use_drag_window=true) |
Sets whether toolitem has a drag window. | |
bool | get_use_drag_window () const |
Returns whether toolitem has a drag window. | |
void | set_visible_horizontal (bool visible_horizontal=true) |
Sets whether toolitem is visible when the toolbar is docked horizontally. | |
bool | get_visible_horizontal () const |
Returns whether the toolitem is visible on toolbars that are docked horizontally. | |
void | set_visible_vertical (bool visible_vertical=true) |
Sets whether toolitem is visible when the toolbar is docked vertically. | |
bool | get_visible_vertical () const |
Returns whether toolitem is visible when the toolbar is docked vertically. | |
bool | get_is_important () const |
Returns whether tool_item is considered important. | |
void | set_is_important (bool is_important=true) |
Sets whether tool_item should be considered important. | |
IconSize | get_icon_size () const |
Returns the icon size used for tool_item . | |
Orientation | get_orientation () const |
Returns the orientation used for tool_item . | |
ToolbarStyle | get_toolbar_style () const |
Returns the toolbar style used for tool_item . | |
ReliefStyle | get_relief_style () const |
Returns the relief style of tool_item . | |
Widget* | retrieve_proxy_menu_item () |
Returns the Gtk::MenuItem that was last set by set_proxy_menu_item(), ie. | |
const Widget* | retrieve_proxy_menu_item () const |
Returns the Gtk::MenuItem that was last set by set_proxy_menu_item(), ie. | |
Widget* | get_proxy_menu_item (const Glib::ustring& menu_item_id) |
If menu_item_id matches the string passed to set_proxy_menu_item() return the corresponding Gtk::MenuItem. | |
const Widget* | get_proxy_menu_item (const Glib::ustring& menu_item_id) const |
If menu_item_id matches the string passed to set_proxy_menu_item() return the corresponding Gtk::MenuItem. | |
void | set_proxy_menu_item (const Glib::ustring& menu_item_id, Widget& menu_item) |
Sets the Gtk::MenuItem used in the toolbar overflow menu. | |
Glib::SignalProxy0<bool> | signal_create_menu_proxy () |
Glib::SignalProxy0<void> | signal_toolbar_reconfigured () |
Glib::PropertyProxy<bool> | property_visible_horizontal () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< bool > | property_visible_horizontal () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<bool> | property_visible_vertical () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< bool > | property_visible_vertical () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<bool> | property_is_important () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< bool > | property_is_important () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Protected Member Functions | |
virtual bool | on_create_menu_proxy () |
virtual void | on_toolbar_reconfigured () |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::ToolItem* | wrap (GtkToolItem* object, bool take_copy=false) |
|
|
|
|
|
Returns whether tool_item is allocated extra space. See set_expand().
|
|
Returns whether tool_item is the same size as other homogeneous items. See set_homogeneous().
|
|
Returns the icon size used for tool_item . Custom subclasses of Gtk::ToolItem should call this function to find out what size icons they should use.
|
|
Returns whether tool_item is considered important.
|
|
Returns the orientation used for tool_item . Custom subclasses of Gtk::ToolItem should call this function to find out what size icons they should use.
|
|
If menu_item_id matches the string passed to set_proxy_menu_item() return the corresponding Gtk::MenuItem. Custom subclasses of Gtk::ToolItem should use this function to update their menu item when the Gtk::ToolItem changes. That the menu_item_id <!-- -->s must match ensures that a Gtk::ToolItem will not inadvertently change a menu item that they did not create.
|
|
If menu_item_id matches the string passed to set_proxy_menu_item() return the corresponding Gtk::MenuItem. Custom subclasses of Gtk::ToolItem should use this function to update their menu item when the Gtk::ToolItem changes. That the menu_item_id <!-- -->s must match ensures that a Gtk::ToolItem will not inadvertently change a menu item that they did not create.
|
|
Returns the relief style of tool_item . See gtk_button_set_relief_style(). Custom subclasses of Gtk::ToolItem should call this function in the handler of the Gtk::ToolItem::toolbar_reconfigured signal to find out the relief style of buttons.
|
|
Returns the toolbar style used for tool_item . Custom subclasses of Gtk::ToolItem should call this function in the handler of the GtkToolItem::toolbar_reconfigured signal to find out in what style the toolbar is displayed and change themselves accordingly Possibilities are: <itemizedlist> <listitem> GTK_TOOLBAR_BOTH, meaning the tool item should show both an icon and a label, stacked vertically </listitem> <listitem> GTK_TOOLBAR_ICONS, meaning the toolbar shows only icons </listitem> <listitem> GTK_TOOLBAR_TEXT, meaning the tool item should only show text</listitem> <listitem> GTK_TOOLBAR_BOTH_HORIZ, meaning the tool item should show both an icon and a label, arranged horizontally (however, note the Gtk::ToolButton::has_text_horizontally that makes tool buttons not show labels when the toolbar style is GTK_TOOLBAR_BOTH_HORIZ. </listitem> </itemizedlist>
|
|
Returns whether toolitem has a drag window.
|
|
Returns whether the toolitem is visible on toolbars that are docked horizontally.
|
|
Returns whether toolitem is visible when the toolbar is docked vertically.
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Bin.
Reimplemented in Gtk::RadioToolButton, Gtk::SeparatorToolItem, Gtk::ToggleToolButton, and Gtk::ToolButton.
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Bin.
Reimplemented in Gtk::RadioToolButton, Gtk::SeparatorToolItem, Gtk::ToggleToolButton, and Gtk::ToolButton.
|
|
|
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Returns the Gtk::MenuItem that was last set by set_proxy_menu_item(), ie. the Gtk::MenuItem that is going to appear in the overflow menu.
|
|
Returns the Gtk::MenuItem that was last set by set_proxy_menu_item(), ie. the Gtk::MenuItem that is going to appear in the overflow menu.
|
|
Sets whether tool_item is allocated extra space when there is more room on the toolbar then needed for the items. The effect is that the item gets bigger when the toolbar gets bigger and smaller when the toolbar gets smaller. Since: 2.4
|
|
Sets whether tool_item is to be allocated the same size as other homogeneous items. The effect is that all homogeneous items will have the same width as the widest of the items. Since: 2.4
|
|
Sets whether tool_item should be considered important. The Gtk::ToolButton class uses this property to determine whether to show or hide its label when the toolbar style is Gtk::TOOLBAR_BOTH_HORIZ. The result is that only tool buttons with the "is_important" property set have labels, an effect known as "priority text" Since: 2.4
|
|
Sets the Gtk::MenuItem used in the toolbar overflow menu. The menu_item_id is used to identify the caller of this function and should also be used with get_proxy_menu_item(). Since: 2.4
|
|
Sets the Gtk::Tooltips object to be used for tool_item , the text to be displayed as tooltip on the item and the private text to be used. Since: 2.4
|
|
Sets whether toolitem has a drag window.
When Since: 2.4
|
|
Sets whether toolitem is visible when the toolbar is docked horizontally. Since: 2.4
|
|
Sets whether toolitem is visible when the toolbar is docked vertically.
Some tool items, such as text entries, are too wide to be useful on a vertically docked toolbar. If visible_vertical is Since: 2.4
|
|
|
|
|
|
|