lv_obj_style_private.h
API reference for lv_obj_style_private.h
Functions
lv_obj_get_style_prop_internal
Internal implementation of lv_obj_get_style_prop Does not do any argument checking
lv_style_value_t lv_obj_get_style_prop_internal(const lv_obj_t *obj, lv_part_t part, lv_style_prop_t prop)| Name | Type |
|---|---|
obj | const lv_obj_t * |
part | lv_part_t |
prop | lv_style_prop_t |
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_dsc)| Name | Type |
|---|---|
obj | lv_obj_t * |
part | lv_part_t |
prev_state | lv_state_t |
new_state | lv_state_t |
tr_dsc | const lv_obj_style_transition_dsc_t * |
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, lv_part_t *changed_part)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | |
state1 | lv_state_t | |
state2 | lv_state_t | |
changed_part | lv_part_t * | optional (may be NULL) out-param. Receives the part that the differing styles belong to, or LV_PART_ANY if more than one part differs (or none does). Lets the caller scope the refresh to a single part when possible. |
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)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | the object whose layer should be updated |
lv_obj_style_apply_color_filter_internal
Internal implementation of lv_obj_style_apply_color_filter Does not do any argument checking
lv_style_value_t lv_obj_style_apply_color_filter_internal(const lv_obj_t *obj, lv_part_t part, lv_style_value_t v)| Name | Type |
|---|---|
obj | const lv_obj_t * |
part | lv_part_t |
v | lv_style_value_t |
lv_obj_update_blur_status
Update the cached blur status of a widget based on its current styles and state, and maintain the global count of widgets with blur (blur_obj_cnt in lv_global_t). The result will be stored in obj->has_blur.
void lv_obj_update_blur_status(lv_obj_t *obj)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | the object whose blur status should be updated |
Structs
_lv_obj_style_t
| Member | Type | Description |
|---|---|---|
style | const lv_style_t * | |
selector | uint32_t | |
is_local | uint32_t | |
is_trans | uint32_t | |
is_disabled | uint32_t | |
is_theme | uint32_t | The style is added by a theme |
_lv_obj_style_transition_dsc_t
| Member | Type | Description |
|---|---|---|
path_cb | lv_anim_path_cb_t | |
user_data | void * | |
selector | lv_style_selector_t | |
time | uint16_t | |
delay | uint16_t | |
prop | lv_style_prop_t |
Dependencies
lvgl_public.h
Last updated on