Lines Matching refs:part

46 static _lv_obj_style_t * get_trans_style(lv_obj_t * obj, uint32_t part);
47 static lv_style_res_t get_prop_core(const lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop, lv_…
50 static bool trans_del(lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop, trans_t * tr_limit);
109 lv_part_t part = lv_obj_style_get_selector_part(selector); in lv_obj_remove_style() local
119 (part != LV_PART_ANY && part_act != part) || in lv_obj_remove_style()
126 trans_del(obj, part, LV_STYLE_PROP_ANY, NULL); in lv_obj_remove_style()
149 lv_obj_refresh_style(obj, part, prop); in lv_obj_remove_style()
175 lv_part_t part = lv_obj_style_get_selector_part(selector); in lv_obj_refresh_style() local
183 if(part == LV_PART_ANY || in lv_obj_refresh_style()
184 part == LV_PART_MAIN || in lv_obj_refresh_style()
191 …if((part == LV_PART_ANY || part == LV_PART_MAIN) && (prop == LV_STYLE_PROP_ANY || is_layout_refr))… in lv_obj_refresh_style()
197 if((part == LV_PART_ANY || part == LV_PART_MAIN) && is_layer_refr) { in lv_obj_refresh_style()
212 if(part != LV_PART_SCROLLBAR) { in lv_obj_refresh_style()
223 lv_style_value_t lv_obj_get_style_prop(const lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop) in lv_obj_get_style_prop() argument
229 found = get_prop_core(obj, part, prop, &value_act); in lv_obj_get_style_prop()
234 if(found != LV_STYLE_RES_INHERIT && part != LV_PART_MAIN) { in lv_obj_get_style_prop()
235 part = LV_PART_MAIN; in lv_obj_get_style_prop()
244 if(part == LV_PART_MAIN && (prop == LV_STYLE_WIDTH || prop == LV_STYLE_HEIGHT)) { in lv_obj_get_style_prop()
324 void _lv_obj_style_create_transition(lv_obj_t * obj, lv_part_t part, lv_state_t prev_state, lv_stat… in _lv_obj_style_create_transition() argument
332 lv_style_value_t v1 = lv_obj_get_style_prop(obj, part, tr_dsc->prop); in _lv_obj_style_create_transition()
334 lv_style_value_t v2 = lv_obj_get_style_prop(obj, part, tr_dsc->prop); in _lv_obj_style_create_transition()
339 v1 = lv_obj_get_style_prop(obj, part, tr_dsc->prop); in _lv_obj_style_create_transition()
342 _lv_obj_style_t * style_trans = get_trans_style(obj, part); in _lv_obj_style_create_transition()
361 tr->selector = part; in _lv_obj_style_create_transition()
380 lv_style_value_t _lv_obj_style_apply_color_filter(const lv_obj_t * obj, uint32_t part, lv_style_val… in _lv_obj_style_apply_color_filter() argument
383 const lv_color_filter_dsc_t * f = lv_obj_get_style_color_filter_dsc(obj, part); in _lv_obj_style_apply_color_filter()
385 lv_opa_t f_opa = lv_obj_get_style_color_filter_opa(obj, part); in _lv_obj_style_apply_color_filter()
488 lv_text_align_t lv_obj_calculate_style_text_align(const struct _lv_obj_t * obj, lv_part_t part, con… in lv_obj_calculate_style_text_align() argument
490 lv_text_align_t align = lv_obj_get_style_text_align(obj, part); in lv_obj_calculate_style_text_align()
491 lv_base_dir_t base_dir = lv_obj_get_style_base_dir(obj, part); in lv_obj_calculate_style_text_align()
496 lv_opa_t lv_obj_get_style_opa_recursive(const lv_obj_t * obj, lv_part_t part) in lv_obj_get_style_opa_recursive() argument
499 lv_opa_t opa_obj = lv_obj_get_style_opa(obj, part); in lv_obj_get_style_opa_recursive()
507 if(part != LV_PART_MAIN) { in lv_obj_get_style_opa_recursive()
508 part = LV_PART_MAIN; in lv_obj_get_style_opa_recursive()
515 opa_obj = lv_obj_get_style_opa(obj, part); in lv_obj_get_style_opa_recursive()
601 static lv_style_res_t get_prop_core(const lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop, lv_… in get_prop_core() argument
618 if(part_act != part) continue; in get_prop_core()
635 if(part_act != part) continue; in get_prop_core()
717 static bool trans_del(lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop, trans_t * tr_limit) in trans_del() argument
729 …if(tr->obj == obj && (part == tr->selector || part == LV_PART_ANY) && (prop == tr->prop || prop ==… in trans_del()
734 … if(obj->styles[i].is_trans && (part == LV_PART_ANY || obj->styles[i].selector == part)) { in trans_del()
819 lv_part_t part = lv_obj_style_get_selector_part(tr->selector); in trans_anim_start_cb() local
820 tr->start_value = lv_obj_get_style_prop(tr->obj, part, tr->prop); in trans_anim_start_cb()
827 trans_del(tr->obj, part, prop_tmp, tr); in trans_anim_start_cb()