|
Gtk::Menu_Helpers::MenuElem Class ReferenceUse this class and its subclasses to build menu items.
More...
|
Public Methods | |
MenuElem (MenuItem& child) | |
MenuElem (const Glib::ustring& label, const CallSlot& slot=CallSlot()) | |
Create a labeled, non-accelerated MenuItem with a SigC::Slot. | |
MenuElem (const Glib::ustring& label, const AccelKey& key, const CallSlot& slot=CallSlot()) | |
Create a labeled, accelerated MenuItem with a SigC::Slot. | |
MenuElem (const Glib::ustring& label, Gtk::Menu& submenu) | |
Create a labeled, non-accelerated MenuItem with a submenu. | |
MenuElem (const Glib::ustring& label, const AccelKey& key, Gtk::Menu& submenu) | |
Create a labeled, accelerated MenuItem with a submenu. |
For example,
m_Menu_File.items().push_back( Gtk::Menu_Helpers::MenuElem("_New", SigC::slot(*this, &ExampleWindow::on_menu_file_new) ) );
|
|
|
Create a labeled, non-accelerated MenuItem with a SigC::Slot.
|
|
Create a labeled, accelerated MenuItem with a SigC::Slot.
|
|
Create a labeled, non-accelerated MenuItem with a submenu.
|
|
Create a labeled, accelerated MenuItem with a submenu.
|