Module rat_widget::event
source · Expand description
Event-handler traits and Keybindings.
Modules§
- Support for the ct_event! macro.
- 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 which ConsumedEvent::is_consumed is true.
- Breaks the control-flow if the block returns a value for which ConsumedEvent::is_consumed is true.
Structs§
- Event-handling for a dialog like widget.
- Event-handler for double-click on a widget.
- Activates editing behaviour in addition to the normal table event handling.
- Handle mouse-events only. Useful whenever you want to write new key-bindings, but keep the mouse-events.
- 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.
- Runs only the navigation events, not any editing.
- All the regular and expected event-handling a widget can do.
Enums§
- Result of event handling.
- Result type for double-click event-handling.
- Result of handling EditKeys.
- Result for the FileDialog.
- The baseline outcome for an event-handler.
- Result of event-handling for a scroll.
- Result of event handling.
- Result of event handling.
Traits§
- When calling multiple event-handlers, the minimum information required from the result is consumed the event/didn’t consume the event.
- A very broad trait for an event handler.