|
gtkmm 3.3.16
|
Defines accelerator key combinations. More...
Public Member Functions | |
| AccelKey () | |
| AccelKey (guint accel_key, Gdk::ModifierType accel_mods, const Glib::ustring& accel_path="") | |
| AccelKey constructor. | |
| AccelKey (const Glib::ustring& accelerator, const Glib::ustring& accel_path=Glib::ustring()) | |
| AccelKey constructor. | |
| AccelKey (const AccelKey& src) | |
| AccelKey& | operator= (const AccelKey& src) |
| bool | is_null () const |
| guint | get_key () const |
| Gets the accelerator key. | |
| Gdk::ModifierType | get_mod () const |
| Gets the accelerator modifier. | |
| Glib::ustring | get_path () const |
| Gets the accelerator path. | |
| Glib::ustring | get_abbrev () const |
| Gets the accelerator representation for labels. | |
Protected Attributes | |
| guint | key_ |
| Gdk::ModifierType | mod_ |
| Glib::ustring | path_ |
Defines accelerator key combinations.
For instance, pressing Control-Q to activate the File|Quit menu item. Typedefed as Gtk::Menu::AccelKey
By defining accelerator paths you can allow the user of your application to change accelerators himself. An example of an accelerator might be "<MainWindow>/File/Open". Modified accelerators may be saved
| Gtk::AccelKey::AccelKey | ( | ) |
| Gtk::AccelKey::AccelKey | ( | guint | accel_key, |
| Gdk::ModifierType | accel_mods, | ||
| const Glib::ustring & | accel_path = "" |
||
| ) |
AccelKey constructor.
| accel_key | For instance, 'q' |
| accel_mods | For instance, Gdk::CONTROL_MASK |
| accel_path | For instance, "<MainWindow>/File/Open" |
| Gtk::AccelKey::AccelKey | ( | const Glib::ustring & | accelerator, |
| const Glib::ustring & | accel_path = Glib::ustring() |
||
| ) |
AccelKey constructor.
| accelerator | For instance, "<control>q" - Use <control>, <shift>, <alt> and <release>. Use F1, F2, etc, for function keys. |
| accel_path | For instance, "<MainWindow>/File/Open" |
| Gtk::AccelKey::AccelKey | ( | const AccelKey& | src | ) |
| Glib::ustring Gtk::AccelKey::get_abbrev | ( | ) | const |
Gets the accelerator representation for labels.
| guint Gtk::AccelKey::get_key | ( | ) | const |
Gets the accelerator key.
| Gdk::ModifierType Gtk::AccelKey::get_mod | ( | ) | const |
Gets the accelerator modifier.
| Glib::ustring Gtk::AccelKey::get_path | ( | ) | const |
Gets the accelerator path.
| bool Gtk::AccelKey::is_null | ( | ) | const |
guint Gtk::AccelKey::key_ [protected] |
Gdk::ModifierType Gtk::AccelKey::mod_ [protected] |
Glib::ustring Gtk::AccelKey::path_ [protected] |
1.7.4