Table of Contents

Event and Effect Menu


Evas Events

Evas events happen on a canvas as a whole. This kind of events are too low-level for writing applications and are most often used when writing the graphical toolkit itself.

Table of Contents

Adding Callbacks to Canvases: evas_event_callback_add/del

The callbacks are added with evas_event_callback_add(). Its prototype is

void evas_event_callback_add(Evas*              e,
                             Evas_Callback_Type type,
                             Evas_Event_Cb      func,
                             const void*        data
                            )

obtained from an Evas_Object through the evas_object_evas_get() function.

The type of the callback function is defined as follows.

void (* Evas_Event_Cb) (void *data, Evas *e, void *event_info)

The callback function definition is similar to

void some_evas_object_event_cb(void *data, Evas *e, void *event_info);

Types of Evas Events

The values are defined from the Evas_Callback_Type enum. Some of them are not used for evas_event_callback_add() but are used in the previous section.



Event and Effect Menu