Struct components::foundation::ModState
source · [−]pub struct ModState {}
Expand description
Input modifier state
Fields
none: bool
no modifiers are down
lshift: bool
left shift key is down
rshift: bool
right shift key is down
lctrl: bool
left ctrl key is down
rctrl: bool
right ctrl key is down
lalt: bool
left alt/option key is down
ralt: bool
right alt/option key is down
lmeta: bool
left windows/command key is down
rmeta: bool
right windows/command key is down
num: bool
numlock is enabled
caps: bool
capslock is enabled
mode: bool
mode key is down
ctrl: bool
left or right ctrl key is down
shift: bool
left or right shift key is down
alt: bool
left or right alt/option key is down
meta: bool
left 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
.