Lines Matching refs:selector

25     lv_style_selector_t selector;  member
45 static lv_style_t * get_local_style(lv_obj_t * obj, lv_style_selector_t selector);
76 void lv_obj_add_style(lv_obj_t * obj, lv_style_t * style, lv_style_selector_t selector) in lv_obj_add_style() argument
78 trans_del(obj, selector, LV_STYLE_PROP_ANY, NULL); in lv_obj_add_style()
101 obj->styles[i].selector = selector; in lv_obj_add_style()
103 lv_obj_refresh_style(obj, selector, LV_STYLE_PROP_ANY); in lv_obj_add_style()
106 void lv_obj_remove_style(lv_obj_t * obj, lv_style_t * style, lv_style_selector_t selector) in lv_obj_remove_style() argument
108 lv_state_t state = lv_obj_style_get_selector_state(selector); in lv_obj_remove_style()
109 lv_part_t part = lv_obj_style_get_selector_part(selector); in lv_obj_remove_style()
116 lv_state_t state_act = lv_obj_style_get_selector_state(obj->styles[i].selector); in lv_obj_remove_style()
117 lv_part_t part_act = lv_obj_style_get_selector_part(obj->styles[i].selector); 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
175 lv_part_t part = lv_obj_style_get_selector_part(selector); in lv_obj_refresh_style()
271 lv_style_selector_t selector) in lv_obj_set_local_style_prop() argument
273 lv_style_t * style = get_local_style(obj, selector); in lv_obj_set_local_style_prop()
275 lv_obj_refresh_style(obj, selector, prop); in lv_obj_set_local_style_prop()
279 lv_style_selector_t selector) in lv_obj_set_local_style_prop_meta() argument
281 lv_style_t * style = get_local_style(obj, selector); in lv_obj_set_local_style_prop_meta()
283 lv_obj_refresh_style(obj, selector, prop); in lv_obj_set_local_style_prop_meta()
287 lv_style_selector_t selector) in lv_obj_get_local_style_prop() argument
292 obj->styles[i].selector == selector) { in lv_obj_get_local_style_prop()
300 … lv_obj_remove_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_selector_t selector) in lv_obj_remove_local_style_prop() argument
308 obj->styles[i].selector == selector) { in lv_obj_remove_local_style_prop()
318 lv_obj_refresh_style(obj, selector, prop); in lv_obj_remove_local_style_prop()
361 tr->selector = part; in _lv_obj_style_create_transition()
400 lv_state_t state_act = lv_obj_style_get_selector_state(obj->styles[i].selector); in _lv_obj_style_state_compare()
478 lv_state_t lv_obj_style_get_selector_state(lv_style_selector_t selector) in lv_obj_style_get_selector_state() argument
480 return selector & 0xFFFF; in lv_obj_style_get_selector_state()
483 lv_part_t lv_obj_style_get_selector_part(lv_style_selector_t selector) in lv_obj_style_get_selector_part() argument
485 return selector & 0xFF0000; in lv_obj_style_get_selector_part()
540 static lv_style_t * get_local_style(lv_obj_t * obj, lv_style_selector_t selector) in get_local_style() argument
545 obj->styles[i].selector == selector) { in get_local_style()
565 obj->styles[i].selector = selector; in get_local_style()
576 static _lv_obj_style_t * get_trans_style(lv_obj_t * obj, lv_style_selector_t selector) in get_trans_style() argument
580 if(obj->styles[i].is_trans && obj->styles[i].selector == selector) break; in get_trans_style()
597 obj->styles[0].selector = selector; in get_trans_style()
616 lv_part_t part_act = lv_obj_style_get_selector_part(obj->styles[i].selector); in get_prop_core()
633 lv_part_t part_act = lv_obj_style_get_selector_part(obj->styles[i].selector); in get_prop_core()
634 lv_state_t state_act = lv_obj_style_get_selector_state(obj->styles[i].selector); in get_prop_core()
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()
758 if(obj->styles[i].is_trans == 0 || obj->styles[i].selector != tr->selector) continue; in trans_anim_cb()
808 if(refr) lv_obj_refresh_style(tr->obj, tr->selector, tr->prop); in trans_anim_cb()
819 lv_part_t part = lv_obj_style_get_selector_part(tr->selector); in trans_anim_start_cb()
831 _lv_obj_style_t * style_trans = get_trans_style(tr->obj, tr->selector); in trans_anim_start_cb()
848 …if(tr_i != tr && tr_i->obj == tr->obj && tr_i->selector == tr->selector && tr_i->prop == tr->prop)… in trans_anim_ready_cb()
857 if(obj->styles[i].is_trans && obj->styles[i].selector == tr->selector) { in trans_anim_ready_cb()
865 lv_obj_remove_style(obj, obj_style->style, obj_style->selector); in trans_anim_ready_cb()