Struct nannou::ui::backend::glium::glium::glutin::ModifiersState
[−]
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
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
fn default() -> ModifiersState
Returns the "default value" for a type. Read more
impl Copy for ModifiersState
impl Hash for ModifiersState
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
__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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for ModifiersState
impl PartialEq<ModifiersState> for ModifiersState
fn eq(&self, __arg_0: &ModifiersState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ModifiersState) -> bool
This method tests for !=
.
impl Clone for ModifiersState
fn clone(&self) -> ModifiersState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more