lv_obj_style_private.h

API reference for lv_obj_style_private.h

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

Functions

lv_obj_style_init

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

 
void lv_obj_style_init(void)

lv_obj_style_deinit

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

 
void lv_obj_style_deinit(void)

lv_obj_style_create_transition

Used internally to create a style transition

 
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)
Parameters

lv_obj_style_state_compare

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

 
lv_style_state_cmp_t lv_obj_style_state_compare(lv_obj_t *obj, lv_state_t state1, lv_state_t state2)
Parameters
NameType
objlv_obj_t *
state1lv_state_t
state2lv_state_t

lv_obj_update_layer_type

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

 
void lv_obj_update_layer_type(lv_obj_t *obj)
Parameters
NameTypeDescription
objlv_obj_t *the object whose layer should be updated

Structs

struct

_lv_obj_style_t

MemberTypeDescription
styleconst lv_style_t *
selectoruint32_t
is_localuint32_t
is_transuint32_t
is_disableduint32_t
is_themeuint32_tThe style is added by a theme
struct

_lv_obj_style_transition_dsc_t

MemberTypeDescription
timeuint16_t
delayuint16_t
selectorlv_style_selector_t
proplv_style_prop_t
path_cblv_anim_path_cb_t
user_datavoid *

Dependencies

How is this guide?

Last updated on

On this page