Struct pnmixerlib::hotkey::Hotkey [] [src]

pub struct Hotkey {
    pub code: key,
    pub mod_bits: u32,
    pub sym: u64,
    pub gtk_accel: String,
}

A hotkey, described by the underlying gdk/X11 representation.

Fields

The hardware keycode.

The modifier keys and mouse button that have been pressed in addition to the main key (e.g. Numlock/Capslock). This is the raw bit representation and can be converted to gtk::ModifierType via self.mods().

X key symbol.

Gtk Accelerator string.

Methods

impl Hotkey
[src]

Creates a new hotkey and grabs it.

Creates a new hotkey from an accelerator string and grabs it.

Grab a key manually. Should be paired with a ungrab() call.

Ungrab a key manually. Should be paired with a grab() call.

Checks if the keycode we got (minus modifiers like numlock/capslock) matches the hotkey. Thus numlock + o will match o.

Trait Implementations

impl Debug for Hotkey
[src]

Formats the value using the given formatter.

impl Drop for Hotkey
[src]

A method called when the value goes out of scope. Read more