lib/ewl_callback.h File Reference
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | Ewl_Callback |
Contains information about a callback. More... | |
struct | Ewl_Callback_Custom |
Contains information about custom callbacks. More... | |
Defines | |
#define | EWL_CALLBACK(callback) ((Ewl_Callback *) callback) |
#define | EWL_CALLBACK_CUSTOM(cb) ((Ewl_Callback_Custom *)cb) |
#define | EWL_CALLBACK_FLAG_INTERCEPT(w, t) w->callbacks[EWL_CALLBACK_INDEX(t)].mask |= EWL_CALLBACK_NOTIFY_INTERCEPT |
#define | EWL_CALLBACK_FLAG_NOINTERCEPT(w, t) |
#define | EWL_CALLBACK_FLAG_NONOTIFY(w, t) w->callbacks[EWL_CALLBACK_INDEX(t)].mask &= ~EWL_CALLBACK_NOTIFY_NOTIFY |
#define | EWL_CALLBACK_FLAG_NOTIFY(w, t) w->callbacks[EWL_CALLBACK_INDEX(t)].mask |= EWL_CALLBACK_NOTIFY_NOTIFY |
#define | EWL_CALLBACK_FLAGS(w, t) (w->callbacks[EWL_CALLBACK_INDEX(t)].mask) |
#define | EWL_CALLBACK_FUNCTION(cb_func) ((Ewl_Callback_Function) cb_func) |
#define | EWL_CALLBACK_INDEX(t) ((t < EWL_CALLBACK_MAX) ? t : EWL_CALLBACK_MAX) |
#define | EWL_CALLBACK_LEN(w, t) (w->callbacks[EWL_CALLBACK_INDEX(t)].len) |
#define | EWL_CALLBACK_LIST(w, t) (w->callbacks[EWL_CALLBACK_INDEX(t)].list) |
#define | EWL_CALLBACK_NOTIFY_MASK (0x3) |
#define | EWL_CALLBACK_POS(w, t) w->callbacks[EWL_CALLBACK_INDEX(t)].index |
#define | EWL_CALLBACK_SET_DIRECT(w, t) w->callbacks[EWL_CALLBACK_INDEX(t)].mask |= EWL_CALLBACK_TYPE_DIRECT |
#define | EWL_CALLBACK_SET_NODIRECT(w, t) w->callbacks[EWL_CALLBACK_INDEX(t)].mask &= ~EWL_CALLBACK_TYPE_DIRECT |
Typedefs | |
typedef Ewl_Callback | Ewl_Callback |
typedef Ewl_Callback_Custom | Ewl_Callback_Custom |
typedef void(*) | Ewl_Callback_Function (Ewl_Widget *widget, void *ev_data, void *user_data) |
Functions | |
Ewl_Callback * | ewl_callback_append (Ewl_Widget *widget, unsigned int type, Ewl_Callback_Function func, void *user_data) |
Append a callback of the specified type. | |
void | ewl_callback_call (Ewl_Widget *widget, unsigned int type) |
Execute callbacks of specified types for the widget. | |
void | ewl_callback_call_with_event_data (Ewl_Widget *widget, unsigned int type, void *event_data) |
Execute callbacks with event data. | |
void | ewl_callback_clear (Ewl_Widget *widget) |
void | ewl_callback_del (Ewl_Widget *w, unsigned int t, Ewl_Callback_Function f) |
Delete the specified callback function from the widget. | |
void | ewl_callback_del_callback (Ewl_Widget *w, unsigned int t, Ewl_Callback *cb) |
void | ewl_callback_del_type (Ewl_Widget *w, unsigned int t) |
void | ewl_callback_del_with_data (Ewl_Widget *w, unsigned int t, Ewl_Callback_Function f, void *data) |
Delete the specified callback function from the widget. | |
Ewl_Callback * | ewl_callback_insert_after (Ewl_Widget *w, unsigned int t, Ewl_Callback_Function f, void *user_data, Ewl_Callback_Function after, void *after_data) |
Add a callback after a previous callback in list. | |
Ewl_Callback * | ewl_callback_prepend (Ewl_Widget *widget, unsigned int type, Ewl_Callback_Function func, void *user_data) |
prepend a callback of the specified type | |
unsigned int | ewl_callback_type_add (void) |
Creates and returns a new callback identifier. | |
int | ewl_callbacks_init (void) |
Setup internal registration variables for callbacks. | |
void | ewl_callbacks_shutdown (void) |
Destroy internal registration variables for callbacks. |