Lines Matching refs:prop
24 lv_style_prop_t prop; member
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);
110 lv_style_prop_t prop = LV_STYLE_PROP_ANY; in lv_obj_remove_style() local
111 if(style && style->prop_cnt == 0) prop = LV_STYLE_PROP_INV; in lv_obj_remove_style()
148 if(deleted && prop != LV_STYLE_PROP_INV) { in lv_obj_remove_style()
149 lv_obj_refresh_style(obj, part, prop); in lv_obj_remove_style()
167 void lv_obj_refresh_style(lv_obj_t * obj, lv_style_selector_t selector, lv_style_prop_t prop) in lv_obj_refresh_style() argument
177 bool is_layout_refr = lv_style_prop_has_flag(prop, LV_STYLE_PROP_LAYOUT_REFR); in lv_obj_refresh_style()
178 bool is_ext_draw = lv_style_prop_has_flag(prop, LV_STYLE_PROP_EXT_DRAW); in lv_obj_refresh_style()
179 bool is_inheritable = lv_style_prop_has_flag(prop, LV_STYLE_PROP_INHERIT); in lv_obj_refresh_style()
180 bool is_layer_refr = lv_style_prop_has_flag(prop, LV_STYLE_PROP_LAYER_REFR); 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()
206 if(prop == LV_STYLE_PROP_ANY || is_ext_draw) { in lv_obj_refresh_style()
211 if(prop == LV_STYLE_PROP_ANY || (is_inheritable && (is_ext_draw || is_layout_refr))) { 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
226 bool inheritable = lv_style_prop_has_flag(prop, LV_STYLE_PROP_INHERIT); in lv_obj_get_style_prop()
229 found = get_prop_core(obj, part, prop, &value_act); 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()
247 if(prop == LV_STYLE_WIDTH) { in lv_obj_get_style_prop()
257 value_act.num = prop == LV_STYLE_WIDTH ? cls->width_def : cls->height_def; in lv_obj_get_style_prop()
264 value_act = lv_style_prop_get_default(prop); in lv_obj_get_style_prop()
270 void lv_obj_set_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_value_t value, in lv_obj_set_local_style_prop() argument
274 lv_style_set_prop(style, prop, value); in lv_obj_set_local_style_prop()
275 lv_obj_refresh_style(obj, selector, prop); in lv_obj_set_local_style_prop()
278 void lv_obj_set_local_style_prop_meta(lv_obj_t * obj, lv_style_prop_t prop, uint16_t meta, in lv_obj_set_local_style_prop_meta() argument
282 lv_style_set_prop_meta(style, prop, meta); in lv_obj_set_local_style_prop_meta()
283 lv_obj_refresh_style(obj, selector, prop); in lv_obj_set_local_style_prop_meta()
286 lv_style_res_t lv_obj_get_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_value_t *… in lv_obj_get_local_style_prop() argument
293 return lv_style_get_prop(obj->styles[i].style, prop, value); in lv_obj_get_local_style_prop()
300 bool lv_obj_remove_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_selector_t selec… in lv_obj_remove_local_style_prop() argument
316 lv_res_t res = lv_style_remove_prop(obj->styles[i].style, prop); in lv_obj_remove_local_style_prop()
318 lv_obj_refresh_style(obj, selector, prop); in lv_obj_remove_local_style_prop()
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()
343 …lv_style_set_prop(style_trans->style, tr_dsc->prop, v1); /*Be sure `trans_style` has a valid val… in _lv_obj_style_create_transition()
345 if(tr_dsc->prop == LV_STYLE_RADIUS) { in _lv_obj_style_create_transition()
360 tr->prop = tr_dsc->prop; in _lv_obj_style_create_transition()
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
603 uint8_t group = 1 << _lv_style_get_prop_group(prop); in get_prop_core()
620 found = lv_style_get_prop(obj_style->style, prop, &value_tmp); in get_prop_core()
644 found = lv_style_get_prop(obj_style->style, prop, &value_tmp); 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 …obj == obj && (part == tr->selector || part == LV_PART_ANY) && (prop == tr->prop || prop == LV_STY… in trans_del()
735 lv_style_remove_prop(obj->styles[i].style, tr->prop); in trans_del()
761 switch(tr->prop) { in trans_anim_cb()
801 if(lv_style_get_prop(obj->styles[i].style, tr->prop, &old_value)) { in trans_anim_cb()
807 lv_style_set_prop(obj->styles[i].style, tr->prop, value_final); in trans_anim_cb()
808 if(refr) lv_obj_refresh_style(tr->obj, tr->selector, tr->prop); in trans_anim_cb()
820 tr->start_value = lv_obj_get_style_prop(tr->obj, part, tr->prop); in trans_anim_start_cb()
823 lv_style_prop_t prop_tmp = tr->prop; in trans_anim_start_cb()
824 tr->prop = LV_STYLE_PROP_INV; in trans_anim_start_cb()
829 tr->prop = prop_tmp; in trans_anim_start_cb()
832 …lv_style_set_prop(style_trans->style, tr->prop, tr->start_value); /*Be sure `trans_style` has a … in trans_anim_start_cb()
840 lv_style_prop_t prop = tr->prop; in trans_anim_ready_cb() local
848 …f(tr_i != tr && tr_i->obj == tr->obj && tr_i->selector == tr->selector && tr_i->prop == tr->prop) { in trans_anim_ready_cb()
862 lv_style_remove_prop(obj_style->style, prop); in trans_anim_ready_cb()