diff options
Diffstat (limited to 'pages/develop')
-rw-r--r-- | pages/develop/guides/c/core/events.md.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/develop/guides/c/core/events.md.txt b/pages/develop/guides/c/core/events.md.txt index f4e12519a..35a66e7e0 100644 --- a/pages/develop/guides/c/core/events.md.txt +++ b/pages/develop/guides/c/core/events.md.txt | |||
@@ -25,7 +25,7 @@ To register a callback method to be called when an object emits a given event us | |||
25 | efl_event_callback_add(object, event, callback, data); | 25 | efl_event_callback_add(object, event, callback, data); |
26 | ``` | 26 | ``` |
27 | 27 | ||
28 | Subsitute *object* for any ``Eo *`` or derived object and *event* for the identifier of the event (such as ``EFL_LOOP_EVENT_POLL_HIGH`` or ``EFL_LOOP_TIMER_EVENT_TICK``). Set *callback* to the method to be called when the event occurs and *data* to any data you want to pass to your callback (if you have no need of this use ``NULL``). | 28 | Substitute *object* for any ``Eo *`` or derived object and *event* for the identifier of the event (such as ``EFL_LOOP_EVENT_POLL_HIGH`` or ``EFL_LOOP_TIMER_EVENT_TICK``). Set *callback* to the method to be called when the event occurs and *data* to any data you want to pass to your callback (if you have no need of this use ``NULL``). |
29 | 29 | ||
30 | The method signature for the callback is: | 30 | The method signature for the callback is: |
31 | 31 | ||
@@ -52,7 +52,7 @@ efl_event_callback_del(object, event, callback, data); | |||
52 | The parameters here have the same meaning as for ``efl_event_callback_add()``. Note that in order to unregister the callback you have to provide **the same parameters** you used to register it. This is because you can register different callbacks to the same event or even the same callback with different *data*. | 52 | The parameters here have the same meaning as for ``efl_event_callback_add()``. Note that in order to unregister the callback you have to provide **the same parameters** you used to register it. This is because you can register different callbacks to the same event or even the same callback with different *data*. |
53 | 53 | ||
54 | > **NOTE:** | 54 | > **NOTE:** |
55 | > Registering and unregistering callbacks is an resource-itensive process. If you perform these operations continuously on several callbacks at the same time do so in a batch as this is more efficient. You can use ``efl_even_callback_array_add()`` and ``efl_even_callback_array_del()`` to accomplish this. Remember however that you can't unregister an individual callback which has been registered in a batch. They must all be unregistered together. | 55 | > Registering and unregistering callbacks is an resource-intensive process. If you perform these operations continuously on several callbacks at the same time do so in a batch as this is more efficient. You can use ``efl_even_callback_array_add()`` and ``efl_even_callback_array_del()`` to accomplish this. Remember however that you can't unregister an individual callback which has been registered in a batch. They must all be unregistered together. |
56 | 56 | ||
57 | Below is an example code snippet based on [reference/c/core/src/core_event.c](https://git.enlightenment.org/tools/examples.git/tree/reference/c/core/src/core_event.c): | 57 | Below is an example code snippet based on [reference/c/core/src/core_event.c](https://git.enlightenment.org/tools/examples.git/tree/reference/c/core/src/core_event.c): |
58 | 58 | ||