#include <menu_elems.h>
Use this class and its subclasses to build menu items. For example,
sigc::mem_fun(*this, &ExampleWindow::on_menu_file_new) ) );
Definition at line 75 of file tk/ytkmm/ytkmm/gtkmm/menu_elems.h.
◆ MenuElem() [1/5]
Gtk::Menu_Helpers::MenuElem::MenuElem |
( |
MenuItem & |
child | ) |
|
◆ MenuElem() [2/5]
Gtk::Menu_Helpers::MenuElem::MenuElem |
( |
const Glib::ustring & |
label, |
|
|
const CallSlot & |
slot = CallSlot() |
|
) |
| |
Create a labeled, non-accelerated MenuItem with a sigc::slot
- Parameters
-
label | The menu item's name |
slot | Use sigc::mem_fun() to specify a signal handler |
◆ MenuElem() [3/5]
Gtk::Menu_Helpers::MenuElem::MenuElem |
( |
const Glib::ustring & |
label, |
|
|
const AccelKey & |
key, |
|
|
const CallSlot & |
slot = CallSlot() |
|
) |
| |
Create a labeled, accelerated MenuItem with a sigc::slot
- Parameters
-
label | The menu item's name |
key | The accelerator key combination |
slot | Use sigc::mem_fun() to specify a signal handler |
◆ MenuElem() [4/5]
Gtk::Menu_Helpers::MenuElem::MenuElem |
( |
const Glib::ustring & |
label, |
|
|
Gtk::Menu & |
submenu |
|
) |
| |
Create a labeled, non-accelerated MenuItem with a submenu
- Parameters
-
label | The menu item's name |
submenu | The sub menu |
◆ MenuElem() [5/5]
Gtk::Menu_Helpers::MenuElem::MenuElem |
( |
const Glib::ustring & |
label, |
|
|
const AccelKey & |
key, |
|
|
Gtk::Menu & |
submenu |
|
) |
| |
Create a labeled, accelerated MenuItem with a submenu
- Parameters
-
label | The menu item's name |
key | The accelerator key combination |
submenu | The sub menu |
The documentation for this class was generated from the following file: