[][src]Enum azul_core::window::AcceleratorKey

pub enum AcceleratorKey {
    Ctrl,
    Alt,
    Shift,
    Key(VirtualKeyCode),
}

Utility function for easier creation of a keymap - i.e. [vec![Ctrl, S], my_function]

Variants

Ctrl
Alt
Shift

Implementations

impl AcceleratorKey[src]

pub fn matches(&self, keyboard_state: &KeyboardState) -> bool[src]

Checks if the current keyboard state contains the given char or modifier, i.e. if the keyboard state currently has the shift key pressed and the accelerator key is Shift, evaluates to true, otherwise to false.

Trait Implementations

impl Clone for AcceleratorKey[src]

impl Copy for AcceleratorKey[src]

impl Debug for AcceleratorKey[src]

impl Eq for AcceleratorKey[src]

impl Hash for AcceleratorKey[src]

impl Ord for AcceleratorKey[src]

impl PartialEq<AcceleratorKey> for AcceleratorKey[src]

impl PartialOrd<AcceleratorKey> for AcceleratorKey[src]

impl StructuralEq for AcceleratorKey[src]

impl StructuralPartialEq for AcceleratorKey[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.