pub struct Modifiers { /* private fields */ }
Expand description
Describes keyboard modifiers event.
Implementations§
source§impl Modifiers
impl Modifiers
sourcepub fn state(&self) -> ModifiersState
pub fn state(&self) -> ModifiersState
The state of the modifiers.
sourcepub fn lshift_state(&self) -> ModifiersKeyState
pub fn lshift_state(&self) -> ModifiersKeyState
The state of the left shift key.
sourcepub fn rshift_state(&self) -> ModifiersKeyState
pub fn rshift_state(&self) -> ModifiersKeyState
The state of the right shift key.
sourcepub fn lalt_state(&self) -> ModifiersKeyState
pub fn lalt_state(&self) -> ModifiersKeyState
The state of the left alt key.
sourcepub fn ralt_state(&self) -> ModifiersKeyState
pub fn ralt_state(&self) -> ModifiersKeyState
The state of the right alt key.
sourcepub fn lcontrol_state(&self) -> ModifiersKeyState
pub fn lcontrol_state(&self) -> ModifiersKeyState
The state of the left control key.
sourcepub fn rcontrol_state(&self) -> ModifiersKeyState
pub fn rcontrol_state(&self) -> ModifiersKeyState
The state of the right control key.
sourcepub fn lsuper_state(&self) -> ModifiersKeyState
pub fn lsuper_state(&self) -> ModifiersKeyState
The state of the left super key.
sourcepub fn rsuper_state(&self) -> ModifiersKeyState
pub fn rsuper_state(&self) -> ModifiersKeyState
The state of the right super key.
Trait Implementations§
source§impl From<ModifiersState> for Modifiers
impl From<ModifiersState> for Modifiers
source§fn from(value: ModifiersState) -> Self
fn from(value: ModifiersState) -> Self
Converts to this type from the input type.
source§impl PartialEq for Modifiers
impl PartialEq for Modifiers
impl Copy for Modifiers
impl Eq for Modifiers
impl StructuralEq for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations§
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnwindSafe for Modifiers
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.