Lines Matching refs:w
94 lv_coord_t w; in lv_obj_refr_size() local
96 w = lv_obj_get_width(obj); in lv_obj_refr_size()
99 w = lv_obj_get_style_width(obj, LV_PART_MAIN); in lv_obj_refr_size()
100 w_is_content = w == LV_SIZE_CONTENT ? true : false; in lv_obj_refr_size()
101 w_is_pct = LV_COORD_IS_PCT(w) ? true : false; in lv_obj_refr_size()
105 w = calc_content_width(obj); in lv_obj_refr_size()
112 w = lv_obj_get_style_pad_left(obj, 0) + border_w; in lv_obj_refr_size()
113 w += lv_obj_get_style_pad_right(obj, 0) + border_w; in lv_obj_refr_size()
116 w = (LV_COORD_GET_PCT(w) * parent_w) / 100; in lv_obj_refr_size()
122 w = lv_clamp_width(w, minw, maxw, parent_w); in lv_obj_refr_size()
166 if(lv_obj_get_width(obj) == w && lv_obj_get_height(obj) == h) return false; in lv_obj_refr_size()
188 obj->coords.x1 = obj->coords.x2 - w + 1; in lv_obj_refr_size()
191 obj->coords.x2 = obj->coords.x1 + w - 1; in lv_obj_refr_size()
215 void lv_obj_set_size(lv_obj_t * obj, lv_coord_t w, lv_coord_t h) in lv_obj_set_size() argument
219 lv_obj_set_width(obj, w); in lv_obj_set_size()
223 void lv_obj_set_width(lv_obj_t * obj, lv_coord_t w) in lv_obj_set_width() argument
231 if((res_w == LV_RES_OK && v_w.num != w) || res_w == LV_RES_INV) { in lv_obj_set_width()
232 lv_obj_set_style_width(obj, w, 0); in lv_obj_set_width()
249 void lv_obj_set_content_width(lv_obj_t * obj, lv_coord_t w) in lv_obj_set_content_width() argument
255 lv_obj_set_width(obj, w + pleft + pright + 2 * border_width); in lv_obj_set_content_width()
650 lv_coord_t w = lv_obj_get_width(obj); in lv_obj_refr_pos() local
652 if(LV_COORD_IS_PCT(tr_x)) tr_x = (w * LV_COORD_GET_PCT(tr_x)) / 100; in lv_obj_refr_pos()
673 x += pw / 2 - w / 2; in lv_obj_refr_pos()
676 x += pw - w; in lv_obj_refr_pos()
685 x += pw / 2 - w / 2; in lv_obj_refr_pos()
689 x += pw - w; in lv_obj_refr_pos()
693 x += pw - w; in lv_obj_refr_pos()
697 x += pw / 2 - w / 2; in lv_obj_refr_pos()