Lines Matching full:x
44 void lv_obj_set_pos(lv_obj_t * obj, lv_coord_t x, lv_coord_t y) in lv_obj_set_pos() argument
48 lv_obj_set_x(obj, x); in lv_obj_set_pos()
52 void lv_obj_set_x(lv_obj_t * obj, lv_coord_t x) in lv_obj_set_x() argument
61 if((res_x == LV_RES_OK && v_x.num != x) || res_x == LV_RES_INV) { in lv_obj_set_x()
62 lv_obj_set_style_x(obj, x, 0); in lv_obj_set_x()
159 /*calc_auto_size set the scroll x/y to 0 so revert the original value*/ in lv_obj_refr_size()
354 lv_coord_t x = 0; in lv_obj_align_to() local
373 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
377 x = bleft; in lv_obj_align_to()
381 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
386 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + bleft; in lv_obj_align_to()
391 x = bleft; in lv_obj_align_to()
395 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
400 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + bleft; in lv_obj_align_to()
405 x = bleft; in lv_obj_align_to()
410 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + bleft; in lv_obj_align_to()
415 x = 0; in lv_obj_align_to()
420 x = lv_obj_get_width(base) / 2 - lv_obj_get_width(obj) / 2; in lv_obj_align_to()
425 x = lv_obj_get_width(base) - lv_obj_get_width(obj); in lv_obj_align_to()
430 x = 0; in lv_obj_align_to()
435 x = lv_obj_get_width(base) / 2 - lv_obj_get_width(obj) / 2; in lv_obj_align_to()
440 x = lv_obj_get_width(base) - lv_obj_get_width(obj); in lv_obj_align_to()
445 x = -lv_obj_get_width(obj); in lv_obj_align_to()
450 x = -lv_obj_get_width(obj); in lv_obj_align_to()
455 x = -lv_obj_get_width(obj); in lv_obj_align_to()
460 x = lv_obj_get_width(base); in lv_obj_align_to()
465 x = lv_obj_get_width(base); in lv_obj_align_to()
470 x = lv_obj_get_width(base); in lv_obj_align_to()
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()
483 lv_obj_set_pos(obj, x, y); in lv_obj_align_to()
608 return p.x; in lv_obj_get_self_width()
633 lv_coord_t x = lv_obj_get_style_x(obj, LV_PART_MAIN); in lv_obj_refr_pos() local
637 lv_obj_move_to(obj, x, y); in lv_obj_refr_pos()
644 if(LV_COORD_IS_PCT(x)) x = (pw * LV_COORD_GET_PCT(x)) / 100; in lv_obj_refr_pos()
656 x += tr_x; in lv_obj_refr_pos()
667 lv_obj_move_to(obj, x, y); 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()
703 lv_obj_move_to(obj, x, y); in lv_obj_refr_pos()
707 void lv_obj_move_to(lv_obj_t * obj, lv_coord_t x, lv_coord_t y) in lv_obj_move_to() argument
709 /*Convert x and y to absolute coordinates*/ in lv_obj_move_to()
717 x += pad_left + parent->coords.x1; in lv_obj_move_to()
721 x += pad_left + parent->coords.x1 - lv_obj_get_scroll_x(parent); in lv_obj_move_to()
726 x += border_width; in lv_obj_move_to()
732 diff.x = x - obj->coords.x1; in lv_obj_move_to()
738 if(diff.x == 0 && diff.y == 0) return; in lv_obj_move_to()
759 obj->coords.x1 += diff.x; in lv_obj_move_to()
761 obj->coords.x2 += diff.x; in lv_obj_move_to()
764 lv_obj_move_children_by(obj, diff.x, diff.y, false); in lv_obj_move_to()
827 area->x1 = LV_MIN4(p[0].x, p[1].x, p[2].x, p[3].x); in lv_obj_get_transformed_area()
828 area->x2 = LV_MAX4(p[0].x, p[1].x, p[2].x, p[3].x); in lv_obj_get_transformed_area()
1019 /* Consider other cases only if x=0 and use the width of the object. in calc_content_width()
1020 * With x!=0 circular dependency could occur. */ in calc_content_width()
1051 /* Consider other cases only if x=0 and use the width of the object. in calc_content_width()
1052 * With x!=0 circular dependency could occur. */ in calc_content_width()
1161 .x = lv_obj_get_style_transform_pivot_x(obj, 0), in transform_point()
1165 if(LV_COORD_IS_PCT(pivot.x)) { in transform_point()
1166 pivot.x = (LV_COORD_GET_PCT(pivot.x) * lv_area_get_width(&obj->coords)) / 100; in transform_point()
1172 pivot.x = obj->coords.x1 + pivot.x; in transform_point()