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 StructuralPartialEq for Modifiers
Auto Trait Implementations§
impl Freeze for Modifiers
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