75#define GP_APP_EVENT_DEFAULT_MASK (1<<GP_WIDGET_EVENT_FREE)
96extern const struct gp_app *gp_app;
113 if (!gp_app->on_event)
116 if (!(gp_app->ev_mask & (1<<ev_type)))
119 va_start(va, ev_type);
120 val = va_arg(va,
long);
128 return gp_app->on_event(&ev);
void gp_app_event_mask(enum gp_widget_event_type ev_type)
Masks out an app event.
static int gp_app_send_event(enum gp_widget_event_type ev_type,...)
Sends an event to the application.
void gp_app_on_event_set(int(*on_event)(gp_widget_event *ev))
Sets an application event hanlder.
void gp_app_event_unmask(enum gp_widget_event_type ev_type)
Unmasks an app event.