Struct components::foundation::ModState
source · [−]pub struct ModState {}Expand description
Input modifier state
Fields
none: boolno modifiers are down
lshift: boolleft shift key is down
rshift: boolright shift key is down
lctrl: boolleft ctrl key is down
rctrl: boolright ctrl key is down
lalt: boolleft alt/option key is down
ralt: boolright alt/option key is down
lmeta: boolleft windows/command key is down
rmeta: boolright windows/command key is down
num: boolnumlock is enabled
caps: boolcapslock is enabled
mode: boolmode key is down
ctrl: boolleft or right ctrl key is down
shift: boolleft or right shift key is down
alt: boolleft or right alt/option key is down
meta: boolleft or right windows/command key is down
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ModState
impl Send for ModState
impl Sync for ModState
impl Unpin for ModState
impl UnwindSafe for ModState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
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>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value as a parameter of self.