Struct window_events::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 Default for ModifiersState[src]
impl Default for ModifiersStatefn default() -> ModifiersState[src]
fn default() -> ModifiersStateReturns the "default value" for a type. Read more
impl Debug for ModifiersState[src]
impl Debug for ModifiersStatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for ModifiersState[src]
impl Hash for ModifiersStatefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)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 PartialEq for ModifiersState[src]
impl PartialEq 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 !=.
impl Eq for ModifiersState[src]
impl Eq for ModifiersStateimpl 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 Copy for ModifiersState[src]
impl Copy for ModifiersStateAuto Trait Implementations
impl Send for ModifiersState
impl Send for ModifiersStateimpl Sync for ModifiersState
impl Sync for ModifiersState