Functions |
void | evas_event_callback_add (Evas *e, Evas_Callback_Type type, Evas_Event_Cb func, const void *data) |
| Adds or registers a callback function to a given canvas event.
|
void | evas_event_callback_priority_add (Evas *e, Evas_Callback_Type type, Evas_Callback_Priority priority, Evas_Event_Cb func, const void *data) |
| Adds or registers a callback function to a given canvas event with a non-default priority set. Except for the priority field, it is exactly the same as evas_event_callback_add.
|
void * | evas_event_callback_del (Evas *e, Evas_Callback_Type type, Evas_Event_Cb func) |
| Deletes a callback function from the canvas.
|
void * | evas_event_callback_del_full (Evas *e, Evas_Callback_Type type, Evas_Event_Cb func, const void *data) |
| Deletes (unregisters) a callback function registered to a given canvas event.
|
void | evas_post_event_callback_push (Evas *e, Evas_Object_Event_Post_Cb func, const void *data) |
| Pushes a callback on the post-event callback stack.
|
void | evas_post_event_callback_remove (Evas *e, Evas_Object_Event_Post_Cb func) |
| Removes a callback from the post-event callback stack.
|
void | evas_post_event_callback_remove_full (Evas *e, Evas_Object_Event_Post_Cb func, const void *data) |
| Removes a callback from the post-event callback stack.
|
Typedefs |
typedef void(* | Evas_Event_Cb )(void *data, Evas *e, void *event_info) |
| Evas event callback function signature.
|
typedef Eina_Bool(* | Evas_Object_Event_Post_Cb )(void *data, Evas *e) |
| Evas event callback Post function signature.
|
This group provides functions relating to canvas events, which are mainly reports on its internal states changing such as an object getting focused, the rendering being updated, and so on.
Typedef Documentation
Evas event callback function signature.
- Since :
- 2.3.1
Evas event callback Post function signature.
- Since :
- 2.3.1
Function Documentation
Adds or registers a callback function to a given canvas event.
This function adds a function callback to the canvas e when the event of type type occurs on it. The function pointer is func.
- Since :
- 2.3.1
- Parameters:
-
[in] | e | The canvas to attach a callback to |
[in] | type | The type of event that triggers the callback |
[in] | func | The (callback) function to be called when the event is triggered |
[in] | data | The data pointer to be passed to func |
Deletes a callback function from the canvas.
This function removes the most recently added callback from the canvas e which is triggered by the event type type and is calling the function func when triggered. If the removal is successful it also returns the data pointer that is passed to evas_event_callback_add() when the callback is added to the canvas. If not successful NULL
is returned.
- Since :
- 2.3.1
- Parameters:
-
[in] | e | The canvas to remove a callback from |
[in] | type | The type of event that is triggering the callback |
[in] | func | The function that is to be called when the event is triggered |
- Returns:
- The data pointer that is to be passed to the callback
Deletes (unregisters) a callback function registered to a given canvas event.
This function removes the first added callback from the canvas e matching the event type type, the registered function pointer func and the callback data pointer data. If the removal is successful it also returns the data pointer that is passed to evas_event_callback_add() (that is the same as the parameter) when the callback(s) is (were) added to the canvas. If not successful NULL
is returned. A common use would be to remove an exact match of a callback.
- Since :
- 2.3.1
- Parameters:
-
[in] | e | The Canvas to remove an event callback from |
[in] | type | The type of event that triggers the callback |
[in] | func | The function that is to be called when the event is triggered |
[in] | data | The data pointer that is to be passed to the callback |
- Returns:
- The data pointer that is to be passed to the callback
Adds or registers a callback function to a given canvas event with a non-default priority set. Except for the priority field, it is exactly the same as evas_event_callback_add.
- Since (EFL) :
- 1.1
- Since :
- 2.3.1
- Parameters:
-
[in] | e | The canvas to attach a callback to |
[in] | type | The type of event that triggers the callback |
[in] | priority | The priority of the callback, lower values called first |
[in] | func | The (callback) function to be called when the event is triggered |
[in] | data | The data pointer to be passed to func |
- See also:
- evas_event_callback_add
Pushes a callback on the post-event callback stack.
- Since :
- 2.3.1
- Parameters:
-
[in] | e | The canvas to push the callback on |
[in] | func | The function that to be called when the stack is unwound |
[in] | data | The data pointer to be passed to the callback |
Removes a callback from the post-event callback stack.
This removes a callback from the stack added with evas_post_event_callback_push(). The first instance of the function in the callback stack is removed from being executed when the stack is unwound. Further instances may still be run on unwind.
- Since :
- 2.3.1
- Parameters:
-
[in] | e | The canvas to push the callback on |
[in] | func | The function that to be called when the stack is unwound |
Removes a callback from the post-event callback stack.
This removes a callback from the stack added with evas_post_event_callback_push(). The first instance of the function and data in the callback stack is removed from being executed when the stack is unwound. Further instances may still be run on unwind.
- Since :
- 2.3.1
- Parameters:
-
[in] | e | The canvas to push the callback on |
[in] | func | The function that to be called when the stack is unwound |
[in] | data | The data pointer to be passed to the callback |