Ardour  9.0-pre0-582-g084a23a80d
Gtk::AccelKey Class Reference

#include <accelkey.h>

Public Member Functions

 AccelKey ()
 
 AccelKey (guint accel_key, Gdk::ModifierType accel_mods, const Glib::ustring &accel_path="")
 
 AccelKey (const Glib::ustring &accelerator, const Glib::ustring &accel_path=Glib::ustring())
 
 AccelKey (const AccelKey &src)
 
AccelKeyoperator= (const AccelKey &src)
 
bool is_null () const
 
guint get_key () const
 
Gdk::ModifierType get_mod () const
 
Glib::ustring get_path () const
 
Glib::ustring get_abbrev () const
 

Protected Attributes

guint key_
 
Gdk::ModifierType mod_
 
Glib::ustring path_
 

Detailed Description

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

See also
Gtk::AccelMap

Definition at line 41 of file accelkey.h.

Constructor & Destructor Documentation

◆ AccelKey() [1/4]

Gtk::AccelKey::AccelKey ( )

◆ AccelKey() [2/4]

Gtk::AccelKey::AccelKey ( guint  accel_key,
Gdk::ModifierType  accel_mods,
const Glib::ustring &  accel_path = "" 
)

AccelKey constructor.

Parameters
accel_keyFor instance, 'q'
accel_modsFor instance, Gdk::CONTROL_MASK
accel_pathFor instance, "<MainWindow>/File/Open"

◆ AccelKey() [3/4]

Gtk::AccelKey::AccelKey ( const Glib::ustring &  accelerator,
const Glib::ustring &  accel_path = Glib::ustring() 
)

AccelKey constructor.

Parameters
acceleratorFor instance, "<control>q" - Use <control>, <shift>, <alt> and <release>. Use F1, F2, etc, for function keys.
accel_pathFor instance, "<MainWindow>/File/Open"

◆ AccelKey() [4/4]

Gtk::AccelKey::AccelKey ( const AccelKey src)

Member Function Documentation

◆ get_abbrev()

Glib::ustring Gtk::AccelKey::get_abbrev ( ) const

Gets the accelerator representation for labels.

◆ get_key()

guint Gtk::AccelKey::get_key ( ) const

Gets the accelerator key.

◆ get_mod()

Gdk::ModifierType Gtk::AccelKey::get_mod ( ) const

Gets the accelerator modifier.

◆ get_path()

Glib::ustring Gtk::AccelKey::get_path ( ) const

Gets the accelerator path.

◆ is_null()

bool Gtk::AccelKey::is_null ( ) const

◆ operator=()

AccelKey& Gtk::AccelKey::operator= ( const AccelKey src)

Member Data Documentation

◆ key_

guint Gtk::AccelKey::key_
protected

Definition at line 87 of file accelkey.h.

◆ mod_

Gdk::ModifierType Gtk::AccelKey::mod_
protected

Definition at line 88 of file accelkey.h.

◆ path_

Glib::ustring Gtk::AccelKey::path_
protected

Definition at line 89 of file accelkey.h.


The documentation for this class was generated from the following file: