Lines Matching refs:x2
48 void lv_area_set(lv_area_t * area_p, lv_coord_t x1, lv_coord_t y1, lv_coord_t x2, lv_coord_t y2) in lv_area_set() argument
52 area_p->x2 = x2; in lv_area_set()
63 area_p->x2 = area_p->x1 + w - 1; in lv_area_set_width()
101 size = (uint32_t)(area_p->x2 - area_p->x1 + 1) * (area_p->y2 - area_p->y1 + 1); in lv_area_get_size()
109 area->x2 += w_extra; in lv_area_increase()
117 area->x2 += x_ofs; in lv_area_move()
134 res_p->x2 = LV_MIN(a1_p->x2, a2_p->x2); in _lv_area_intersect()
139 if((res_p->x1 > res_p->x2) || (res_p->y1 > res_p->y2)) { in _lv_area_intersect()
174 n.x2 = a1_p->x2; in _lv_area_diff()
184 n.x2 = a1_p->x2; in _lv_area_diff()
199 n.x2 = a1_p->x1 + lw; in _lv_area_diff()
205 lv_coord_t rw = a1_w - (a2_p->x2 - a1_p->x1); in _lv_area_diff()
207 n.x1 = a2_p->x2; in _lv_area_diff()
209 n.x2 = a2_p->x2 + rw; in _lv_area_diff()
228 a_res_p->x2 = LV_MAX(a1_p->x2, a2_p->x2); in _lv_area_join()
243 if((p_p->x >= a_p->x1 && p_p->x <= a_p->x2) && ((p_p->y >= a_p->y1 && p_p->y <= a_p->y2))) { in _lv_area_is_point_on()
263 corner_area.x2 = a_p->x1 + radius; in _lv_area_is_point_on()
267 corner_area.x2 += radius; in _lv_area_is_point_on()
275 corner_area.x2 += radius; in _lv_area_is_point_on()
280 corner_area.x1 = a_p->x2 - radius; in _lv_area_is_point_on()
281 corner_area.x2 = a_p->x2; in _lv_area_is_point_on()
307 …if((a1_p->x1 <= a2_p->x2) && (a1_p->x2 >= a2_p->x1) && (a1_p->y1 <= a2_p->y2) && (a1_p->y2 >= a2_p… in _lv_area_is_on()
326 if(ain_p->x1 >= aholder_p->x1 && ain_p->y1 >= aholder_p->y1 && ain_p->x2 <= aholder_p->x2 && in _lv_area_is_in()
341 p.x = ain_p->x2; in _lv_area_is_in()
349 p.x = ain_p->x2; in _lv_area_is_in()
365 if(aout_p->x2 < aholder_p->x1 || aout_p->y2 < aholder_p->y1 || aout_p->x1 > aholder_p->x2 || in _lv_area_is_out()
379 p.x = aout_p->x2; in _lv_area_is_out()
387 p.x = aout_p->x2; in _lv_area_is_out()
396 return a->x1 == b->x1 && a->x2 == b->x2 && a->y1 == b->y1 && a->y2 == b->y2; in _lv_area_is_equal()
527 to_align->x2 = to_align->x1 + w - 1; in lv_area_align()
589 lv_coord_t r = (area->x2 - area->x1) / 2; in lv_point_within_circle()