Struct nannou::ui::backend::glium::glium::backend::glutin::glutin::ModifiersState [−]
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 Hash for ModifiersState
impl Hash for ModifiersState
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
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 Clone for ModifiersState
impl Clone for ModifiersState
fn clone(&self) -> ModifiersState
fn clone(&self) -> ModifiersState
Returns 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 Default for ModifiersState
impl Default for ModifiersState
fn default() -> ModifiersState
fn default() -> ModifiersState
Returns the "default value" for a type. Read more
impl Debug for ModifiersState
impl Debug for ModifiersState
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for ModifiersState
impl Copy for ModifiersState
impl Eq for ModifiersState
impl Eq for ModifiersState
impl PartialEq<ModifiersState> for ModifiersState
impl PartialEq<ModifiersState> for ModifiersState
fn eq(&self, other: &ModifiersState) -> bool
fn eq(&self, other: &ModifiersState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ModifiersState) -> bool
fn ne(&self, other: &ModifiersState) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ModifiersState
impl Send for ModifiersState
impl Sync for ModifiersState
impl Sync for ModifiersState