Module rat_widget::event

source ·
Expand description

Event-handler traits and Keybindings.

Modules§

Macros§

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§

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.