Gtk.Accelerator Members

The members of Gtk.Accelerator are listed below.

See Also: Inherited members from System.Object

Public Constructors

Basic constructor.

Public Properties

static
DefaultModMaskGdk.ModifierType. A mask to specify the default modifier key(s).

Public Methods

static
GetLabel(uint, Gdk.ModifierType) : string
Converts an accelerator keyval and modifier mask into a string which can be used to represent the accelerator to the user.
static
Name(uint, Gdk.ModifierType) : string
Converts an accelerator keyval and modifier mask into a string parseable by Accelerator.Parse. For example, if you pass in Gdk.Key.Q and Gdk.ModifierType.ControlMask, this function returns "<Control>q".
static
Parse(string, out uint, out Gdk.ModifierType)
Parses a string representing an accelerator. The format looks like "<Control>a" or "<Shift><Alt>F1" or "<Release>z" (the last one is for key release). The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "<Ctl>" and "<Ctrl>".
static
Valid(uint, Gdk.ModifierType) : bool
Determines whether a given keyval and modifier mask constitute a valid keyboard accelerator. For example, Gdk.Key.A keyval plus Gdk.ModifierType.ControlMask is valid; this is a "Ctrl+a" accelerator. However, you can't use the Gdk.Control_L keyval as an accelerator.