Lines Matching refs:coords
186 obj->coords.y2 = obj->coords.y1 + h - 1; 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()
207 bool on2 = _lv_area_is_in(&obj->coords, &parent_fit_area, 0); in lv_obj_refr_size()
476 x += x_ofs + base->coords.x1 - parent->coords.x1 + lv_obj_get_scroll_right(parent) - pleft; in lv_obj_align_to()
479 x += x_ofs + base->coords.x1 - parent->coords.x1 + lv_obj_get_scroll_left(parent) - pleft; in lv_obj_align_to()
481 y += y_ofs + base->coords.y1 - parent->coords.y1 + lv_obj_get_scroll_top(parent) - ptop; in lv_obj_align_to()
487 void lv_obj_get_coords(const lv_obj_t * obj, lv_area_t * coords) in lv_obj_get_coords() argument
491 lv_area_copy(coords, &obj->coords); in lv_obj_get_coords()
501 rel_x = obj->coords.x1 - parent->coords.x1; in lv_obj_get_x()
507 rel_x = obj->coords.x1; in lv_obj_get_x()
526 rel_y = obj->coords.y1 - parent->coords.y1; in lv_obj_get_y()
532 rel_y = obj->coords.y1; in lv_obj_get_y()
558 return lv_area_get_width(&obj->coords); in lv_obj_get_width()
565 return lv_area_get_height(&obj->coords); in lv_obj_get_height()
717 x += pad_left + parent->coords.x1; in lv_obj_move_to()
718 y += pad_top + parent->coords.y1; in lv_obj_move_to()
721 x += pad_left + parent->coords.x1 - lv_obj_get_scroll_x(parent); in lv_obj_move_to()
722 y += pad_top + parent->coords.y1 - lv_obj_get_scroll_y(parent); in lv_obj_move_to()
732 diff.x = x - obj->coords.x1; in lv_obj_move_to()
733 diff.y = y - obj->coords.y1; in lv_obj_move_to()
759 obj->coords.x1 += diff.x; in lv_obj_move_to()
760 obj->coords.y1 += diff.y; in lv_obj_move_to()
761 obj->coords.x2 += diff.x; in lv_obj_move_to()
762 obj->coords.y2 += diff.y; in lv_obj_move_to()
775 bool on2 = _lv_area_is_in(&obj->coords, &parent_fit_area, 0); in lv_obj_move_to()
787 child->coords.x1 += x_diff; in lv_obj_move_children_by()
788 child->coords.y1 += y_diff; in lv_obj_move_children_by()
789 child->coords.x2 += x_diff; in lv_obj_move_children_by()
790 child->coords.y2 += y_diff; in lv_obj_move_children_by()
855 lv_area_copy(&obj_coords, &obj->coords); in lv_obj_invalidate()
883 lv_area_copy(&obj_coords, &obj->coords); in lv_obj_area_is_visible()
903 lv_area_t par_area = par->coords; in lv_obj_area_is_visible()
920 lv_area_copy(&obj_coords, &obj->coords); in lv_obj_is_visible()
940 lv_area_copy(area, &obj->coords); in lv_obj_get_click_area()
1016 child_res = LV_MAX(child_res, obj->coords.x2 - child->coords.x1 + 1); in calc_content_width()
1022 … child_res = LV_MAX(child_res, lv_area_get_width(&child->coords) + pad_right); in calc_content_width()
1027 child_res = LV_MAX(child_res, obj->coords.x2 - child->coords.x1 + 1); in calc_content_width()
1048 child_res = LV_MAX(child_res, child->coords.x2 - obj->coords.x1 + 1); in calc_content_width()
1054 … child_res = LV_MAX(child_res, lv_area_get_width(&child->coords) + pad_left); in calc_content_width()
1059 child_res = LV_MAX(child_res, child->coords.x2 - obj->coords.x1 + 1); in calc_content_width()
1098 child_res = LV_MAX(child_res, child->coords.y2 - obj->coords.y1 + 1); in calc_content_height()
1104 child_res = LV_MAX(child_res, lv_area_get_height(&child->coords) + pad_top); in calc_content_height()
1110 child_res = LV_MAX(child_res, child->coords.y2 - obj->coords.y1 + 1); in calc_content_height()
1166 pivot.x = (LV_COORD_GET_PCT(pivot.x) * lv_area_get_width(&obj->coords)) / 100; in transform_point()
1169 pivot.y = (LV_COORD_GET_PCT(pivot.y) * lv_area_get_height(&obj->coords)) / 100; in transform_point()
1172 pivot.x = obj->coords.x1 + pivot.x; in transform_point()
1173 pivot.y = obj->coords.y1 + pivot.y; in transform_point()