Table of Contents

Event and Effect Menu


Evas Object Events

Each of the evas objects on a given evas canvas can be manipulated independently. They send events, to which callbacks can be attached through evas_object_event_callback_add() and removed with evas_object_event_callback_del(). These events all relate to single objects, not the whole canvas.

Table of Contents

Adding and Removing Callbacks: evas_object_event_callback_add/del

Callbacks are added with evas_event_callback_add(). Its prototype is

void evas_object_event_callback_add(Evas_Object*         obj,
                                    Evas_Callback_Type   type,
                                    Evas_Object_Event_Cb func,
                                    const void*          data
                                   )

The type of the callback function is defined as follows.

void (* Evas_Object_Event_Cb) (void *data, Evas *e, Evas_Object *obj, void *event_info)

The callback function definition is similar to

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

Types of Evas Object Events

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