GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
Event structure passed to widget event handler. More...
#include <gp_widget_event.h>
Data Fields | ||
gp_widget * | self | |
The widget the event is for. | ||
uint16_t | type | |
An event type, enum gp_widget_event_type. | ||
uint16_t | sub_type | |
Widget specific subtype defined by widgets. | ||
union { | ||
void * ptr | ||
Optional pointer. | ||
long val | ||
Optional integer value. More... | ||
struct gp_bbox * bbox | ||
Optional bounding box. More... | ||
struct gp_event * input_ev | ||
An input event. More... | ||
}; | ||
Event structure passed to widget event handler.
Definition at line 137 of file gp_widget_event.h.
union { ... } gp_widget_event |
A payload.
struct gp_bbox* gp_widget_event::bbox |
Optional bounding box.
The bounding box is passed in the case of a pixmap widget repaint event.
Definition at line 175 of file gp_widget_event.h.
struct gp_event* gp_widget_event::input_ev |
An input event.
Points to an input event when gp_widget_event::type is set to GP_WIDGET_EVENT_INPUT. If a widget wants to process input events these have to be unmasked first by gp_widget_events_unmask().
Definition at line 184 of file gp_widget_event.h.
uint16_t gp_widget_event::sub_type |
Widget specific subtype defined by widgets.
For all widget specific events the gp_widget_event::type is set to GP_WIDGET_EVENT_WIDGET and the gp_widget_event::sub_type is documented for each particular widget, e.g. gp_widget_tbox_event_type.
Definition at line 150 of file gp_widget_event.h.
long gp_widget_event::val |
Optional integer value.
This is used by widgets to pass an integer value, e.g. by a tbox widget to send an unicode characters for gp_widget_event::sub_type set to GP_WIDGET_EVENT_TBOX_PRE_FILTER from gp_widget_tbox_event_type.
Definition at line 168 of file gp_widget_event.h.