1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

declare lv_img_set_offset() with new params.

This commit is contained in:
Ali Rostami 2019-03-06 17:35:14 +03:30 committed by GitHub
parent fc375fd115
commit 0bce1876c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,13 +103,30 @@ static inline void lv_img_set_file(lv_obj_t * img, const char * fn)
*/
void lv_img_set_auto_size(lv_obj_t * img, bool autosize_en);
/**
/**
* Set an offset for the source of an image.
* so the image will be displayed from this new origin.
* so the image will be displayed from the new origin.
* @param img pointer to an image
* @param en true: auto size enable, false: auto size disable
* @param x: the new offset along x axis.
* @param y: the new offset along y axis.
*/
void lv_img_set_offset(lv_obj_t *img, lv_point_t offset);
void lv_img_set_offset(lv_obj_t *img, lv_coord_t x, lv_coord_t y);
/**
* Set an offset for the source of an image.
* so the image will be displayed from the new origin.
* @param img pointer to an image
* @param x: the new offset along x axis.
*/
void lv_img_set_offset_x(lv_obj_t *img, lv_coord_t x);
/**
* Set an offset for the source of an image.
* so the image will be displayed from the new origin.
* @param img pointer to an image
* @param y: the new offset along y axis.
*/
void lv_img_set_offset_y(lv_obj_t *img, lv_coord_t y);
/**
* Set the style of an image