Struct sixtyfps_corelib::input::KeyboardModifiers[][src]

#[repr(C)]
pub struct KeyboardModifiers { pub alt: bool, pub control: bool, pub shift: bool, pub meta: bool, }

KeyboardModifier provides booleans to indicate possible modifier keys on a keyboard, such as Shift, Control, etc.

On macOS, the command key is mapped to the meta modifier.

On Windows, the windows key is mapped to the meta modifier.

Fields

alt: bool

Indicates the alt key on a keyboard.

control: bool

Indicates the control key on a keyboard.

shift: bool

Indicates the shift key on a keyboard.

meta: bool

Indicates the logo key on macOS and the windows key on Windows.

Trait Implementations

impl Clone for KeyboardModifiers[src]

impl Copy for KeyboardModifiers[src]

impl Debug for KeyboardModifiers[src]

impl Default for KeyboardModifiers[src]

impl Eq for KeyboardModifiers[src]

impl PartialEq<KeyboardModifiers> for KeyboardModifiers[src]

impl StructuralEq for KeyboardModifiers[src]

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