|  |  | 
Inheritance diagram for Gtk::MenuItem:

| Public Methods | |
| virtual | ~MenuItem () | 
| GtkMenuItem* | gobj () | 
| Provides access to the underlying C GtkObject. | |
| const GtkMenuItem* | gobj () const | 
| Provides access to the underlying C GtkObject. | |
| MenuItem () | |
| Create an empty menu item. | |
| MenuItem (Widget& widget) | |
| Create a menu item with widget. | |
| MenuItem (const Glib::ustring& label, bool mnemonic=false) | |
| Create a menu item with label. | |
| void | set_submenu (Menu& submenu) | 
| Menu* | get_submenu () | 
| Gets the submenu underneath this menu item, if any. | |
| const Menu* | get_submenu () const | 
| Gets the submenu underneath this menu item, if any. | |
| bool | has_submenu () const | 
| void | remove_submenu () | 
| void | select () | 
| void | deselect () | 
| void | activate () | 
| For widgets that can be "activated" (buttons, menu items, etc.) this function activates them. | |
| void | toggle_size_request (int& requisition) | 
| void | toggle_size_allocate (int allocation) | 
| void | set_right_justified (bool right_justified=true) | 
| Sets whether the menu item appears justified at the right side of a menu bar. | |
| bool | get_right_justified () const | 
| Gets whether the menu item appears justified at the right side of the menu bar. | |
| void | set_accel_path (const Glib::ustring& accel_path) | 
| Set the accelerator path on menu_item , through which runtime changes of the menu item's accelerator caused by the user can be identified and saved to persistant storage (see gtk_accel_map_save() on this). | |
| Glib::SignalProxy0<void> | signal_activate () | 
| Glib::SignalProxy0<void> | signal_activate_item () | 
| Glib::SignalProxy1< void, int* > | signal_toggle_size_request () | 
| Glib::SignalProxy1< void, int > | signal_toggle_size_allocate () | 
| void | accelerate (Window& window) | 
| Protected Methods | |
| virtual void | on_activate () | 
| virtual void | on_activate_item () | 
| virtual void | on_toggle_size_request (int* requisition) | 
| virtual void | on_toggle_size_allocate (int allocation) | 
| void | add_accel_label (const Glib::ustring& label, bool mnemonic=true) | 
| void | set_accel_key (const Menu_Helpers::AccelKey& accel_key) | 
| Friends | |
| class | Menu_Helpers::Element | 
| Related Functions | |
| (Note that these are not member functions.) | |
| Gtk::MenuItem* | wrap (GtkMenuItem* object, bool take_copy=false) | 
Handle highlighting, alignment, events and submenus. As it derives from Gtk::Bin it can hold any valid child widget, altough only a few are really useful.
| 
 | 
| 
 | 
| 
 | 
| Create an empty menu item. 
 | 
| 
 | 
| Create a menu item with widget. 
 | 
| 
 | ||||||||||||
| Create a menu item with label. 
 | 
| 
 | 
| 
 | 
| 
 | 
| For widgets that can be "activated" (buttons, menu items, etc.) this function activates them. 
Activation is what happens when you press Enter on a widget during key navigation; clicking a button, selecting a menu item, etc. If widget isn't activatable, the function returns  
 Reimplemented from Gtk::Widget. | 
| 
 | ||||||||||||
| 
 | 
| 
 | 
| 
 Reimplemented from Gtk::Item. | 
| 
 | 
| Gets whether the menu item appears justified at the right side of the menu bar. 
 
 | 
| 
 | 
| Gets the submenu underneath this menu item, if any. See set_submenu(). 
 | 
| 
 | 
| Gets the submenu underneath this menu item, if any. See set_submenu(). 
 | 
| 
 | 
| Provides access to the underlying C GtkObject. 
 Reimplemented from Gtk::Item. Reimplemented in Gtk::CheckMenuItem, Gtk::ImageMenuItem, Gtk::RadioMenuItem, Gtk::SeparatorMenuItem, and Gtk::TearoffMenuItem. | 
| 
 | 
| Provides access to the underlying C GtkObject. 
 Reimplemented from Gtk::Item. Reimplemented in Gtk::CheckMenuItem, Gtk::ImageMenuItem, Gtk::RadioMenuItem, Gtk::SeparatorMenuItem, and Gtk::TearoffMenuItem. | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 Reimplemented from Gtk::Item. | 
| 
 | 
| 
 | 
| 
 | 
| Set the accelerator path on menu_item , through which runtime changes of the menu item's accelerator caused by the user can be identified and saved to persistant storage (see gtk_accel_map_save() on this). To setup a default accelerator for this menu item, call gtk_accel_map_add_entry() with the same accel_path . See also gtk_accel_map_add_entry() on the specifics of accelerator paths, and set_accel_path() for a more convenient variant of this function. This function is basically a convenience wrapper that handles calling Gtk::Widget::set_accel_path() with the appropriate accelerator group for the menu item. Note that you do need to set an accelerator on the parent menu with set_accel_group() for this to work. 
 | 
| 
 | 
| Sets whether the menu item appears justified at the right side of a menu bar. This was traditionally done for "Help" menu items, but is now considered a bad idea. (If the widget layout is reversed for a right-to-left language like Hebrew or Arabic, right-justified-menu-items appear at the left.) 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 
 | 
| 
 | 
| 
 
 | 
| 
 | 
| 
 
 | 
| 
 | 
| 
 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| 
 |