Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
A Widget
is a unit that is displayed on the screen. It is associated
with a mutable state s
. It provides an event handler with default
keybindings and can generate a renderable Image
.
Widget modules should provide a Widget
instance and additionally a
collection of actions that can be invoked by external event handlers:
widgetAction ::VgrepT
s mRedraw
Re-exports from Vgrep.Event
Redraw | Indicates that the state has been changed visibly, so the screen should be refreshed. |
Unchanged | The state has not changed or the change would not be visible, so refreshing the screen is not required. |
The type of action to be performed on an event.
Skip | Do not handle the event (fall-through to other event handlers) |
Continue a | Handle the event by performing an action |
Interrupt Interrupt | Interrupt the application |