Lines Matching refs:scale_x

35 static void scale_update(lv_obj_t * obj, int32_t scale_x, int32_t scale_y);
243 if(img->rotation || img->scale_x != LV_SCALE_NONE || img->scale_y != LV_SCALE_NONE) { in lv_image_set_src()
291 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_rotation()
307 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_rotation()
333 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_pivot()
350 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_pivot()
367 if(zoom == img->scale_x && zoom == img->scale_y) return; in lv_image_set_scale()
383 if(zoom == img->scale_x) return; in lv_image_set_scale_x()
403 scale_update(obj, img->scale_x, zoom); in lv_image_set_scale_y()
513 return img->scale_x; in lv_image_get_scale()
522 return img->scale_x; in lv_image_get_scale_x()
587 img->scale_x = LV_SCALE_NONE; in lv_image_constructor()
641 if(img->rotation || img->scale_x != LV_SCALE_NONE || img->scale_y != LV_SCALE_NONE) { in lv_image_event()
645 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_event()
658 (img->scale_x != LV_SCALE_NONE || img->scale_y != LV_SCALE_NONE || in lv_image_event()
664 …lv_image_buf_get_transformed_area(&coords, w, h, img->rotation, img->scale_x, img->scale_y, &pivot… in lv_image_event()
718 if(img->scale_x == LV_SCALE_NONE && img->scale_y == LV_SCALE_NONE) { in draw_image()
728 …_transformed_area(&a, lv_obj_get_width(obj), lv_obj_get_height(obj), 0, img->scale_x, img->scale_y, in draw_image()
748 if(img->scale_x == 0 || img->scale_y == 0) return; in draw_image()
761 draw_dsc.scale_x = img->scale_x; in draw_image()
818 static void scale_update(lv_obj_t * obj, int32_t scale_x, int32_t scale_y) in scale_update() argument
828 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in scale_update()
835 img->scale_x = scale_x; in scale_update()
845 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in scale_update()
861 int32_t scale_x = lv_obj_get_width(obj) * LV_SCALE_NONE / img->w; in update_align() local
863 scale_update(obj, scale_x, scale_y); in update_align()