Struct winit::ModifiersState
source · Expand description
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
sourceimpl Clone for ModifiersState
impl Clone for ModifiersState
sourcefn clone(&self) -> ModifiersState
fn clone(&self) -> ModifiersState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ModifiersState
impl Debug for ModifiersState
sourceimpl Default for ModifiersState
impl Default for ModifiersState
sourcefn default() -> ModifiersState
fn default() -> ModifiersState
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ModifiersStatewhere
ModifiersState: Default,
impl<'de> Deserialize<'de> for ModifiersStatewhere
ModifiersState: Default,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<ModifiersState> for ModifiersState
impl From<ModifiersState> for ModifiersState
sourcefn from(mods: ModifiersState) -> ModifiersState
fn from(mods: ModifiersState) -> ModifiersState
Converts to this type from the input type.
sourceimpl From<XIModifierState> for ModifiersState
impl From<XIModifierState> for ModifiersState
sourcefn from(mods: XIModifierState) -> Self
fn from(mods: XIModifierState) -> Self
Converts to this type from the input type.
sourceimpl Hash for ModifiersState
impl Hash for ModifiersState
sourceimpl PartialEq<ModifiersState> for ModifiersState
impl PartialEq<ModifiersState> for ModifiersState
sourcefn eq(&self, other: &ModifiersState) -> bool
fn eq(&self, other: &ModifiersState) -> bool
sourceimpl Serialize for ModifiersState
impl Serialize for ModifiersState
impl Copy for ModifiersState
impl Eq for ModifiersState
impl StructuralEq for ModifiersState
impl StructuralPartialEq for ModifiersState
Auto Trait Implementations
impl RefUnwindSafe for ModifiersState
impl Send for ModifiersState
impl Sync for ModifiersState
impl Unpin for ModifiersState
impl UnwindSafe for ModifiersState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.