lv_observer_private.h

struct _lv_observer_t
#include <lv_observer_private.h>

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

Public Members

lv_subject_t *subject

Observed subject

lv_observer_cb_t cb

Callback that notifies when value changes

void *target

A target for the observer, e.g. a widget or any pointer

void *user_data

Additional parameter supplied when subscribing

uint32_t auto_free_user_data

Automatically free user data when observer is removed

uint32_t notified

Was observer already notified?

uint32_t for_obj

Is target a pointer to a Widget (lv_obj_t *)?

struct _lv_subject_increment_dsc_t
#include <lv_observer_private.h>

Descriptor created by lv_obj_add_subject_increment_event()

Public Members

lv_subject_t *subject

The subject to adjust

int32_t step

The step add to the subject

bool rollover

Where to start over from the other end when one end is exceeded

int32_t min_value

Don't set a value smaller than this

int32_t max_value

Don't set a value larger than this