pub struct Modifiers {
pub cmd: bool,
pub shift: bool,
pub ctrl: bool,
pub alt: bool,
}Expand description
Represents the state of modifier keys.
Fields§
§cmd: boolTrue if the cmd key is pressed.
Command key on Mac, ctrl on Windows/Linux.
Use this for e.g. cmd+A (select all).
shift: boolTrue if any shift key is pressed.
ctrl: boolTrue if any ctrl key is pressed.
alt: boolTrue if any alt key is pressed.
Implementations§
Trait Implementations§
source§impl PartialEq<Modifiers> for Modifiers
impl PartialEq<Modifiers> 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