pub struct Modifiers { /* private fields */ }Expand description
Keyboard modifier key states.
Implementations§
Source§impl Modifiers
impl Modifiers
pub fn get_shift(&self) -> bool
pub fn get_mut_shift(&mut self) -> &mut bool
pub fn set_shift(&mut self, val: bool) -> &mut Self
pub fn get_ctrl(&self) -> bool
pub fn get_mut_ctrl(&mut self) -> &mut bool
pub fn set_ctrl(&mut self, val: bool) -> &mut Self
pub fn get_alt(&self) -> bool
pub fn get_mut_alt(&mut self) -> &mut bool
pub fn set_alt(&mut self, val: bool) -> &mut Self
pub fn get_meta(&self) -> bool
pub fn get_mut_meta(&mut self) -> &mut bool
pub fn set_meta(&mut self, val: bool) -> &mut Self
Trait Implementations§
impl Copy for Modifiers
impl Eq for Modifiers
Source§impl Ord for Modifiers
impl Ord for Modifiers
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Modifiers
impl PartialOrd for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations§
impl Forget for Modifiers
impl Freeze for Modifiers
impl Move for Modifiers
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnsafeUnpin 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