pub struct Modifiers {
pub ctrl: bool,
pub alt: bool,
pub shift: bool,
pub meta: bool,
}Expand description
Modifier keys held during a keyboard or pointer event.
§Examples
use ailloli_ui_core::event::Modifiers;
let modifiers = Modifiers { ctrl: true, ..Modifiers::default() };
assert!(modifiers.ctrl);Fields§
§ctrl: booltrue while a Control modifier is active.
alt: booltrue while an Alt/Option modifier is active.
shift: booltrue while a Shift modifier is active.
meta: booltrue while a platform Meta/Command/Windows modifier is active.
Trait Implementations§
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