pub struct InteractionModifiers {
pub shift: bool,
pub ctrl: bool,
pub alt: bool,
pub meta: bool,
}Expand description
Keyboard-modifier snapshot carried with an interaction event.
Fields§
§shift: boolWhether shift was pressed.
ctrl: boolWhether control was pressed.
alt: boolWhether alt was pressed.
meta: boolWhether meta / command / windows key was pressed.
Implementations§
Trait Implementations§
Source§impl Clone for InteractionModifiers
impl Clone for InteractionModifiers
Source§fn clone(&self) -> InteractionModifiers
fn clone(&self) -> InteractionModifiers
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InteractionModifiers
impl Debug for InteractionModifiers
Source§impl Default for InteractionModifiers
impl Default for InteractionModifiers
Source§fn default() -> InteractionModifiers
fn default() -> InteractionModifiers
Returns the “default value” for a type. Read more
Source§impl Hash for InteractionModifiers
impl Hash for InteractionModifiers
Source§impl PartialEq for InteractionModifiers
impl PartialEq for InteractionModifiers
impl Copy for InteractionModifiers
impl Eq for InteractionModifiers
impl StructuralPartialEq for InteractionModifiers
Auto Trait Implementations§
impl Freeze for InteractionModifiers
impl RefUnwindSafe for InteractionModifiers
impl Send for InteractionModifiers
impl Sync for InteractionModifiers
impl Unpin for InteractionModifiers
impl UnsafeUnpin for InteractionModifiers
impl UnwindSafe for InteractionModifiers
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