FDOSTUI
FreeDOS Text User Interface
|
Data structures for event handling. More...
Go to the source code of this file.
Classes | |
struct | event_key |
container for a keyboard event More... | |
struct | event_mouse |
container for a mouse event More... | |
struct | event_resize |
container for a resize event More... | |
Enumerations | |
enum | event_response { RESPONSE_CANCEL = -4, RESPONSE_ACCEPT = -3, RESPONSE_CLOSE = -2, RESPONSE_HANDLED = -1, RESPONSE_NONE = 0 } |
response More... | |
enum | mouse_state { MOUSE_BUTTON_NONE = 0, MOUSE_BUTTON_CLICKED, MOUSE_BUTTON_DRAGGING, MOUSE_BUTTON_RELEASED } |
mouse state More... | |
Data structures for event handling.
enum event_response |
response
An event handler is required to respond to an event such as mouse or keyboard. The handler does not have to use the response values. Any value can be used. Consequently, it is up to the caller to intrepret and take action on the value.
The only caveat is the window manager wm_run_modal routine. This routine will evaulate the response and exit the run loop if certain conditions are met.
enum mouse_state |