lv_obj_style_private.h

Functions

void lv_obj_style_init(void)

Initialize the object related style manager module. Called by LVGL in lv_init()

void lv_obj_style_deinit(void)

Deinitialize the object related style manager module. Called by LVGL in lv_deinit()

void lv_obj_style_create_transition(lv_obj_t *obj, lv_part_t part, lv_state_t prev_state, lv_state_t new_state, const lv_obj_style_transition_dsc_t *tr)

Used internally to create a style transition

Parameters:
  • obj

  • part

  • prev_state

  • new_state

  • tr

lv_style_state_cmp_t lv_obj_style_state_compare(lv_obj_t *obj, lv_state_t state1, lv_state_t state2)

Used internally to compare the appearance of an object in 2 states

Parameters:
  • obj

  • state1

  • state2

Returns:

void lv_obj_update_layer_type(lv_obj_t *obj)

Update the layer type of a widget bayed on its current styles. The result will be stored in obj->spec_attr->layer_type

Parameters:

obj – the object whose layer should be updated

struct _lv_obj_style_t

Public Members

const lv_style_t *style
uint32_t selector
uint32_t is_local
uint32_t is_trans
struct _lv_obj_style_transition_dsc_t

Public Members

uint16_t time
uint16_t delay
lv_style_selector_t selector
lv_style_prop_t prop
lv_anim_path_cb_t path_cb
void *user_data