Module cursive::event
[−]
[src]
User-input events and their effects.
- Every user input the application receives is converted to an
Event
. - Each event is then given to the root, and descends the view tree down to
the view currently in focus, through the
on_event
method.- If the view consumes the event, it may return a callback to be executed.
- Otherwise, it ignores the event, and the view parent can in turn choose to consume it or not.
- If no view consumes the event, the global callback table is checked.
Enums
Event |
Represents an event as seen by the application. |
EventResult |
Answer to an event notification. The event can be consumed or ignored. |
Key |
A non-character key on the keyboard |
Type Definitions
Callback |
Callback is a function that can be triggered by an event. It has a mutable access to the cursive root. |