pub struct ModifierHandler {
pub inspect_status: InputHandlerStatus,
/* private fields */
}
Expand description
Tracks modifier state and decorates passing events with the modifiers.
This handler should be installed as early as possible in the input pipeline,
to ensure that all later stages have the modifiers and lock states available.
This holds even for non-keyboard handlers, to allow handling Ctrl+Click
events, for example.
One possible exception to this rule would be a hardware key rewriting handler for limited keyboards.
Fields§
§inspect_status: InputHandlerStatus
The inventory of this handler’s Inspect status.
Implementations§
Source§impl ModifierHandler
impl ModifierHandler
Sourcepub fn new(input_handlers_node: &Node) -> Rc<Self>
pub fn new(input_handlers_node: &Node) -> Rc<Self>
Creates a new ModifierHandler.
Trait Implementations§
Source§impl Debug for ModifierHandler
impl Debug for ModifierHandler
Source§impl UnhandledInputHandler for ModifierHandler
impl UnhandledInputHandler for ModifierHandler
Source§fn handle_unhandled_input_event<'async_trait>(
self: Rc<Self>,
unhandled_input_event: UnhandledInputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
fn handle_unhandled_input_event<'async_trait>(
self: Rc<Self>,
unhandled_input_event: UnhandledInputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
Self: 'async_trait,
Returns a vector of InputEvents to propagate to the next InputHandler. Read more
fn set_handler_healthy(self: Rc<Self>)
fn set_handler_unhealthy(self: Rc<Self>, msg: &str)
Auto Trait Implementations§
impl !Freeze for ModifierHandler
impl !RefUnwindSafe for ModifierHandler
impl Send for ModifierHandler
impl !Sync for ModifierHandler
impl Unpin for ModifierHandler
impl !UnwindSafe for ModifierHandler
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> InputHandler for Twhere
T: UnhandledInputHandler,
impl<T> InputHandler for Twhere
T: UnhandledInputHandler,
Source§fn handle_input_event<'async_trait>(
self: Rc<T>,
input_event: InputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
T: 'async_trait,
fn handle_input_event<'async_trait>(
self: Rc<T>,
input_event: InputEvent,
) -> Pin<Box<dyn Future<Output = Vec<InputEvent>> + 'async_trait>>where
T: 'async_trait,
Returns a vector of InputEvents to propagate to the next InputHandler. Read more