Lines Matching refs:pivot
38 static void lv_image_set_pivot_helper(lv_obj_t * obj, lv_point_t * pivot);
325 if(img->pivot.x == x && img->pivot.y == y) return; in lv_image_set_pivot()
340 lv_point_set(&img->pivot, x, y); in lv_image_set_pivot()
497 void lv_image_get_pivot(lv_obj_t * obj, lv_point_t * pivot) in lv_image_get_pivot() argument
503 pivot->x = lv_pct_to_px(img->pivot.x, img->w); in lv_image_get_pivot()
504 pivot->y = lv_pct_to_px(img->pivot.y, img->h); in lv_image_get_pivot()
591 lv_point_set(&img->pivot, LV_PCT(50), LV_PCT(50)); /*Default pivot to image center*/ in lv_image_constructor()
659 img->rotation != 0 || img->pivot.x != img->w / 2 || img->pivot.y != img->h / 2)) { in lv_image_event()
760 lv_image_get_pivot(obj, &draw_dsc.pivot); in draw_image()
875 static void lv_image_set_pivot_helper(lv_obj_t * obj, lv_point_t * pivot) in lv_image_set_pivot_helper() argument
877 lv_image_set_pivot(obj, pivot->x, pivot->y); in lv_image_set_pivot_helper()
882 lv_point_t pivot; in lv_image_get_pivot_helper() local
883 lv_image_get_pivot(obj, &pivot); in lv_image_get_pivot_helper()
884 return pivot; in lv_image_get_pivot_helper()