Expand description
Eventhandling.
Modules§
Macros§
- break_
flow - Use
event_flow!instead. - ct_
event - This macro produces pattern matches for crossterm events.
- event_
flow - Tries to unify the currently 3 flow! constructs.
- flow
- Use
event_flow!instead. - try_
flow - Use
event_flow!instead.
Structs§
- Dialog
- Event-handling for a dialog like widget.
- Double
Click - Event-handler for double-click on a widget.
- Mouse
Only - Handle mouse-events only. Useful whenever you want to write new key-bindings, but keep the mouse-events.
- Popup
- Popup/Overlays are a bit difficult to handle, as there is no z-order/area tree, which would direct mouse interactions. We can simulate a z-order in the event-handler by trying the things with a higher z-order first.
- Regular
- All the regular and expected event-handling a widget can do.
Enums§
- Double
Click Outcome - Result type for double-click event-handling.
- Edit
Outcome - Result type for the edit widgets.
- Outcome
- The baseline outcome for an event-handler.
- Table
Outcome - Result value for event-handling.
Traits§
- Consumed
Event - When calling multiple event-handlers, the minimum information required from the result is ‘has consumed/didn’t consume’ the event.
- Handle
Event - A very broad trait for an event handler.