![]() |
![]() |
A ToolButton is are Gtk::ToolItem containing a button.
Public Member Functions | |
const Widget* | get_icon_widget () const |
Return the widget used as icon widget on button . | |
Widget* | get_icon_widget () |
Return the widget used as icon widget on button . | |
Glib::ustring | get_label () const |
Returns the label used by the tool button, or 0 if the tool button doesn't have a label. | |
const Widget* | get_label_widget () const |
Returns the widget used as label on button . | |
Widget* | get_label_widget () |
Returns the widget used as label on button . | |
Glib::ustring | get_stock_id () const |
Returns the name of the stock item. | |
bool | get_use_underline () const |
Returns whether underscores in the label property are used as mnemonics on menu items on the overflow menu. | |
const GtkToolButton* | gobj () const |
Provides access to the underlying C GtkObject. | |
GtkToolButton* | gobj () |
Provides access to the underlying C GtkObject. | |
Glib::PropertyProxy_ReadOnly< Gtk::Widget > | property_icon_widget () const |
Icon widget to display in the item. | |
Glib::PropertyProxy<Gtk::Widget> | property_icon_widget () |
Icon widget to display in the item. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_label () const |
Text to show in the item. | |
Glib::PropertyProxy<Glib::ustring> | property_label () |
Text to show in the item. | |
Glib::PropertyProxy_ReadOnly< Gtk::Widget* > | property_label_widget () const |
Widget to use as the item label. | |
Glib::PropertyProxy<Gtk::Widget*> | property_label_widget () |
Widget to use as the item label. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_stock_id () const |
The stock icon displayed on the item. | |
Glib::PropertyProxy<Glib::ustring> | property_stock_id () |
The stock icon displayed on the item. | |
Glib::PropertyProxy_ReadOnly< bool > | property_use_underline () const |
If set. | |
Glib::PropertyProxy<bool> | property_use_underline () |
If set. | |
void | set_icon_widget (Widget& icon_widget) |
Sets icon as the widget used as icon on button . | |
void | set_label (const Glib::ustring& label) |
Sets label as the label used for the tool button. | |
void | set_label_widget (Widget& label_widget) |
Sets label_widget as the widget that will be used as the label for button . | |
void | set_stock_id (const Gtk::StockID& stock_id) |
Sets the name of the stock item. | |
void | set_use_underline (bool use_underline=true) |
If set, an underline in the label property indicates that the next character should be used for the mnemonic accelerator key in the overflow menu. | |
Glib::SignalProxy0<void> | signal_clicked () |
This signal is emitted when the tool button is clicked with the mouse or activated with the keyboard. | |
ToolButton (Widget& icon_widget, const Glib::ustring& label=Glib::ustring()) | |
Creates a new ToolButton with an image. | |
ToolButton (const Glib::ustring& label) | |
Creates a new ToolButton with a label. | |
ToolButton (const Gtk::StockID& stock_id) | |
Creates a new ToolButton from a StockID. | |
ToolButton () | |
Creates a new ToolButton. | |
virtual | ~ToolButton () |
Protected Member Functions | |
virtual void | on_clicked () |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::ToolButton* | wrap (GtkToolButton* object, bool take_copy=false) |
|
|
|
Creates a new ToolButton.
|
|
Creates a new ToolButton from a StockID. The ToolButton will be created according to the stock_id properties.
|
|
Creates a new ToolButton with a label. The ToolButton will have the label label.
|
|
Creates a new ToolButton with an image. The ToolButton will have the label label and an image widget icon_widget.
|
|
Return the widget used as icon widget on button . See set_icon_widget().
|
|
Return the widget used as icon widget on button . See set_icon_widget().
|
|
Returns the label used by the tool button, or or uses a the label from a stock item. The returned string is owned by GTK+, and must not be modified or freed.
|
|
Returns the widget used as label on button . See set_label_widget().
|
|
Returns the widget used as label on button . See set_label_widget().
|
|
Returns the name of the stock item. See set_stock_id(). The returned string is owned by GTK+ and must not be freed or modifed.
|
|
Returns whether underscores in the label property are used as mnemonics on menu items on the overflow menu. See set_use_underline().
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::ToolItem. Reimplemented in Gtk::MenuToolButton, Gtk::RadioToolButton, and Gtk::ToggleToolButton. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::ToolItem. Reimplemented in Gtk::MenuToolButton, Gtk::RadioToolButton, and Gtk::ToggleToolButton. |
|
|
|
Icon widget to display in the item. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Icon widget to display in the item. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Text to show in the item. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Text to show in the item. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Widget to use as the item label. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Widget to use as the item label. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The stock icon displayed on the item. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The stock icon displayed on the item. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
If set. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
If set. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Sets icon as the widget used as icon on button .
If icon_widget is
|
|
Sets label as the label used for the tool button.
The "label" property only has an effect if not overridden by a non-
|
|
Sets label_widget as the widget that will be used as the label for button .
If label_widget is
|
|
Sets the name of the stock item. See the ToolButton::ToolButton(const Gtk::StockID& stock_id, IconSize size) constructor. The stock_id property only has an effect if not overridden by "label" and "icon_widget" properties. newin2p4
|
|
If set, an underline in the label property indicates that the next character should be used for the mnemonic accelerator key in the overflow menu.
For example, if the label property is "_Open" and use_underline is Labels shown on tool buttons never have mnemonics on them; this property only affects the menu item on the overflow menu.
|
|
This signal is emitted when the tool button is clicked with the mouse or activated with the keyboard.
|
|
|