![]() |
![]() |
A MenuToolButton is a Gtk::ToolItem that contains a menu.
Public Member Functions | |
const Menu* | get_menu () const |
Gets the Gtk::Menu associated with Gtk::MenuToolButton. | |
Menu* | get_menu () |
Gets the Gtk::Menu associated with Gtk::MenuToolButton. | |
const GtkMenuToolButton* | gobj () const |
Provides access to the underlying C GtkObject. | |
GtkMenuToolButton* | gobj () |
Provides access to the underlying C GtkObject. | |
MenuToolButton (Widget& icon_widget, const Glib::ustring& label=Glib::ustring()) | |
Creates a new MenuToolButton with an image. | |
MenuToolButton (const Glib::ustring& label) | |
Creates a new MenuToolButton with a label. | |
MenuToolButton (const Gtk::StockID& stock_id) | |
Creates a new MenuToolButton from a StockID. | |
MenuToolButton () | |
Creates a new MenuToolButton. | |
Glib::PropertyProxy_ReadOnly< Menu* > | property_menu () const |
The dropdown menu. | |
Glib::PropertyProxy<Menu*> | property_menu () |
The dropdown menu. | |
void | set_arrow_tooltip (Tooltips& tooltips, const Glib::ustring& tip_text, const Glib::ustring& tip_private) |
Sets the Gtk::Tooltips object to be used for arrow button which pops up the menu. | |
void | set_menu (Menu& menu) |
Sets the Gtk::Menu that is popped up when the user clicks on the arrow. | |
Glib::SignalProxy0<void> | signal_show_menu () |
virtual | ~MenuToolButton () |
Protected Member Functions | |
virtual void | on_show_menu () |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::MenuToolButton* | wrap (GtkMenuToolButton* object, bool take_copy=false) |
|
|
|
Creates a new MenuToolButton.
|
|
Creates a new MenuToolButton from a StockID. The MenuToolButton will be created according to the stock_id properties.
|
|
Creates a new MenuToolButton with a label. The MenuToolButton will have the label label.
|
|
Creates a new MenuToolButton with an image. The MenuToolButton will have the label label and an image widget icon_widget.
|
|
Gets the Gtk::Menu associated with Gtk::MenuToolButton.
|
|
Gets the Gtk::Menu associated with Gtk::MenuToolButton.
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::ToolButton. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::ToolButton. |
|
|
|
The dropdown menu. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The dropdown menu. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Sets the Gtk::Tooltips object to be used for arrow button which pops up the menu. See Gtk::ToolItem::set_tooltip() for setting a tooltip on the whole Gtk::MenuToolButton.
|
|
Sets the Gtk::Menu that is popped up when the user clicks on the arrow.
If menu is
|
|
|
|
|