Struct glutin::ModifiersState[][src]

pub struct ModifiersState {
    pub shift: bool,
    pub ctrl: bool,
    pub alt: bool,
    pub logo: bool,
}

Represents the current state of the keyboard modifiers

Each field of this struct represents a modifier and is true if this modifier is active.

Fields

The "shift" key

The "control" key

The "alt" key

The "logo" key

This is the "windows" key on PC and "command" key on Mac.

Trait Implementations

impl Clone for ModifiersState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ModifiersState
[src]

Formats the value using the given formatter. Read more

impl Copy for ModifiersState
[src]

impl Default for ModifiersState
[src]

Returns the "default value" for a type. Read more

impl Hash for ModifiersState
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for ModifiersState
[src]

impl From<XIModifierState> for ModifiersState
[src]

Performs the conversion.

impl From<ModifiersState> for ModifiersState
[src]

Performs the conversion.

impl PartialEq<ModifiersState> for ModifiersState
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for ModifiersState

impl Sync for ModifiersState