lv_observer_private.h
API reference for lv_observer_private.h
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_observer.h
Summary
Functions
lv_subject_global_init
void lv_subject_global_init(void)lv_subject_global_deinit
void lv_subject_global_deinit(void)Structs
struct
_lv_observer_t
The observer object: a descriptor returned when subscribing LVGL widgets to subjects
| Member | Type | Description |
|---|---|---|
subject | lv_subject_t * | Observed subject |
cb | lv_observer_cb_t | Callback that notifies when value changes |
target | void * | A target for the observer, e.g. a widget or any pointer |
user_data | void * | Additional parameter, can be used freely by user |
user_cb | void(*)(void) | Additional function pointer, can be used freely by user |
auto_free_user_data | uint32_t | Automatically free user data when observer is removed |
notified | uint32_t | Was observer already notified? |
for_obj | uint32_t | Is target a pointer to a Widget (lv_obj_t *)? |
struct
_lv_subject_increment_dsc_t
Descriptor created by lv_obj_add_subject_increment_event()
| Member | Type | Description |
|---|---|---|
subject | lv_subject_t * | The subject to adjust |
step | int32_t | The step add to the subject |
rollover | bool | Where to start over from the other end when one end is exceeded |
min_value | int32_t | Don't set a value smaller than this |
max_value | int32_t | Don't set a value larger than this |
Dependencies
lvgl_public.h
Last updated on