pub struct Context { /* private fields */ }Expand description
Context for mod-conditioned keys.
Implementations§
Source§impl Context
impl Context
Sourcepub const fn pressed_modifiers(&self) -> KeyboardModifiers
pub const fn pressed_modifiers(&self) -> KeyboardModifiers
Currently held keyboard modifiers (engine snapshot).
Sourcepub fn suppressed_modifiers(&self) -> KeyboardModifiers
pub fn suppressed_modifiers(&self) -> KeyboardModifiers
Union of active suppress masks for the HID report.
Sourcepub fn update_keymap_context(&mut self, _: &KeymapContext)
pub fn update_keymap_context(&mut self, _: &KeymapContext)
Updates from the engine keymap context snapshot.
Trait Implementations§
Source§impl Context for Context
impl Context for Context
impl Copy for Context
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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