[][src]Struct lnk::HotkeyFlags

pub struct HotkeyFlags { /* fields omitted */ }

The HotkeyFlags structure specifies input generated by a combination of keyboard keys being pressed.

Methods

impl HotkeyFlags[src]

pub fn new(low_byte: HotkeyKey, high_byte: HotkeyModifiers) -> Self[src]

Create a new HotkeyFlags instance.

pub fn key(&self) -> &HotkeyKey[src]

The primary key assigned to the hotkey

pub fn set_key(&mut self, key: HotkeyKey)[src]

Set the hotkey primary key

pub fn modifiers(&self) -> &HotkeyModifiers[src]

The modifiers (Shift, Ctrl, Alt) for this hotkey

pub fn set_modifiers(&mut self, modifiers: HotkeyModifiers)[src]

Set the hotkey modifiers (Shift, Ctrl, Alt)

Trait Implementations

impl Clone for HotkeyFlags[src]

impl Copy for HotkeyFlags[src]

impl Debug for HotkeyFlags[src]

impl Eq for HotkeyFlags[src]

impl Hash for HotkeyFlags[src]

impl PartialEq<HotkeyFlags> for HotkeyFlags[src]

impl StructuralEq for HotkeyFlags[src]

impl StructuralPartialEq for HotkeyFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.