Struct glutin::ModifiersState [−][src]
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
shift: bool
The "shift" key
ctrl: bool
The "control" key
alt: bool
The "alt" key
logo: bool
The "logo" key
This is the "windows" key on PC and "command" key on Mac.
Trait Implementations
impl Clone for ModifiersState[src]
impl Clone for ModifiersStatefn clone(&self) -> ModifiersState[src]
fn clone(&self) -> ModifiersStateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for ModifiersState[src]
impl Debug for ModifiersStatefn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for ModifiersState[src]
impl Copy for ModifiersStateimpl Default for ModifiersState[src]
impl Default for ModifiersStatefn default() -> ModifiersState[src]
fn default() -> ModifiersStateReturns the "default value" for a type. Read more
impl Hash for ModifiersState[src]
impl Hash for ModifiersStatefn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Eq for ModifiersState[src]
impl Eq for ModifiersStateimpl From<XIModifierState> for ModifiersState[src]
impl From<XIModifierState> for ModifiersStatefn from(mods: XIModifierState) -> ModifiersState[src]
fn from(mods: XIModifierState) -> ModifiersStatePerforms the conversion.
impl From<ModifiersState> for ModifiersState[src]
impl From<ModifiersState> for ModifiersStatefn from(mods: ModifiersState) -> ModifiersState[src]
fn from(mods: ModifiersState) -> ModifiersStatePerforms the conversion.
impl PartialEq<ModifiersState> for ModifiersState[src]
impl PartialEq<ModifiersState> for ModifiersStatefn eq(&self, other: &ModifiersState) -> bool[src]
fn eq(&self, other: &ModifiersState) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ModifiersState) -> bool[src]
fn ne(&self, other: &ModifiersState) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for ModifiersState
impl Send for ModifiersStateimpl Sync for ModifiersState
impl Sync for ModifiersState