Module rat_widget::event
source · Expand description
Event-handling traits and types.
Modules§
- Some utility functions that pop up all the time.
Macros§
- This macro produces pattern matches for crossterm events.
- Breaks the control-flow if the block returns a value for with ConsumedEvent::is_consumed is true.
- Breaks and Ok-wraps the control-flow if the block returns a value for with ConsumedEvent::is_consumed is true.
Structs§
- Event-handler for double-click on the table.
- Activates editing behaviour in addition to the normal table event handling.
- Default key bindings when focused. Also handles all events that are MouseOnly.
- Handler for mouse events only.
- Runs only the event-handling for the popup-parts of a widget. These should be run before the standard
FocusKeyorMouseOnlyevent-handlers, to mitigate the front/back problem of overlaying widgets. - Runs only the navigation events, not any editing.
Enums§
- Result type for double-click event-handling.
- Result of handling EditKeys.
- A baseline Outcome for event-handling.
- Result value for event-handling. Used widgets in this crate.
- Result of event handling.
Traits§
- When composing several widgets, the minimum information from the outcome of the inner widget is, whether it used & consumed the event.
- A very broad trait for an event handler for widgets.