[−][src]Struct genie_hki::Hotkey
The information about a single hotkey.
Fields
key: i32
Keycode that activates this hotkey.
You can use a crate like keycodes to compare this to
named virtual keys like keycodes::KEY_RETURN
.
string_id: i32
The string ID for this hotkey's label. -1 if this hotkey is unused.
ctrl: bool
Whether the Ctrl key needs to be held to activate this hotkey.
alt: bool
Whether the Alt key needs to be held to activate this hotkey.
shift: bool
Whether the Shift key needs to be held to activate this hotkey.
Methods
impl Hotkey
[src]
pub fn key(self, key: i32) -> Self
[src]
pub fn string_id(self, string_id: i32) -> Self
[src]
pub fn ctrl(self, ctrl: bool) -> Self
[src]
pub fn alt(self, alt: bool) -> Self
[src]
pub fn shift(self, shift: bool) -> Self
[src]
Trait Implementations
impl Default for Hotkey
[src]
impl Clone for Hotkey
[src]
fn clone(&self) -> Hotkey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Hotkey
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,