![]() |
![]() |
Inheritance diagram for Gtk::MenuItem:
Public Member Functions | |
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 () |
const Menu* | get_submenu () const |
bool | has_submenu () const |
void | remove_submenu () |
void | select () |
void | deselect () |
void | activate () |
void | toggle_size_request (int& requisition) |
void | toggle_size_allocate (int allocation) |
void | set_right_justified (bool right_justified=true) |
bool | get_right_justified () const |
void | set_accel_path (const Glib::ustring& accel_path) |
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 Member Functions | |
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.
|
|
|
|
Reimplemented from Gtk::Widget. |
|
|
|
Reimplemented from Gtk::Item. |
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|