Struct Context
pub struct Context { /* private fields */ }Expand description
Context for mod-conditioned keys.
Implementations§
§impl Context
impl Context
pub fn reset(&mut self)
pub fn reset(&mut self)
Clear runtime state.
pub const fn pressed_modifiers(&self) -> KeyboardModifiers
pub const fn pressed_modifiers(&self) -> KeyboardModifiers
Currently held keyboard modifiers (engine snapshot).
pub fn suppressed_modifiers(&self) -> KeyboardModifiers
pub fn suppressed_modifiers(&self) -> KeyboardModifiers
Union of active suppress masks for the HID report.
pub fn update_keymap_context(&mut self, _: &KeymapContext)
pub fn update_keymap_context(&mut self, _: &KeymapContext)
Updates from the engine keymap context snapshot.
Trait Implementations§
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