mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
docs(event) fix lv_event_get_original_target vs lv_event_get_current_target
This commit is contained in:
parent
318edd8a3f
commit
cdd5128bc0
@ -151,8 +151,8 @@ lv_event_send(mbox, LV_EVENT_VALUE_CHANGED, &btn_id);
|
||||
|
||||
`lv_event_t` is the only parameter passed to the event callback and it contains all data about the event. The following values can be gotten from it:
|
||||
- `lv_event_get_code(e)` get the event code
|
||||
- `lv_event_get_target(e)` get the object to which an event was sent
|
||||
- `lv_event_get_original_target(e)` get the object to which an event was originally sent (different from `lv_event_get_target` if [event bubbling](#event-bubbling) is enabled)
|
||||
- `lv_event_get_current_target(e)` get the object to which an event was sent. I.e. the object whose event handler is being called.
|
||||
- `lv_event_get_target(e)` get the object that originally triggered the event (different from `lv_event_get_target` if [event bubbling](#event-bubbling) is enabled)
|
||||
- `lv_event_get_user_data(e)` get the pointer passed as the last parameter of `lv_obj_add_event_cb`.
|
||||
- `lv_event_get_param(e)` get the parameter passed as the last parameter of `lv_event_send`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user