lv_observer_private.h

API reference for lv_observer_private.h

Report on GitHub
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_observer.h
Summary

Structs

struct

_lv_observer_t

The observer object: a descriptor returned when subscribing LVGL widgets to subjects

MemberTypeDescription
subjectlv_subject_t *Observed subject
cblv_observer_cb_tCallback that notifies when value changes
targetvoid *A target for the observer, e.g. a widget or any pointer
user_datavoid *Additional parameter supplied when subscribing
auto_free_user_datauint32_tAutomatically free user data when observer is removed
notifieduint32_tWas observer already notified?
for_objuint32_tIs target a pointer to a Widget (lv_obj_t *)?
struct

_lv_subject_increment_dsc_t

Descriptor created by lv_obj_add_subject_increment_event()

MemberTypeDescription
subjectlv_subject_t *The subject to adjust
stepint32_tThe step add to the subject
rolloverboolWhere to start over from the other end when one end is exceeded
min_valueint32_tDon't set a value smaller than this
max_valueint32_tDon't set a value larger than this

Dependencies

How is this guide?

Last updated on

On this page