lv_animimage.h
Functions
-
lv_obj_t *lv_animimg_create(lv_obj_t *parent)
Create an animation image objects
- 参数:
parent -- pointer to an object, it will be the parent of the new button
- 返回:
pointer to the created animation image object
-
void lv_animimg_set_src(lv_obj_t *img, const void *dsc[], size_t num)
Set the image animation images source.
- 参数:
img -- pointer to an animation image object
dsc -- pointer to a series images
num -- images' number
-
void lv_animimg_start(lv_obj_t *obj)
Startup the image animation.
- 参数:
obj -- pointer to an animation image object
-
void lv_animimg_set_duration(lv_obj_t *img, uint32_t duration)
Set the image animation duration time. unit:ms
- 参数:
img -- pointer to an animation image object
duration -- the duration in milliseconds
-
void lv_animimg_set_repeat_count(lv_obj_t *img, uint32_t count)
Set the image animation repeatedly play times.
- 参数:
img -- pointer to an animation image object
count -- the number of times to repeat the animation
-
const void **lv_animimg_get_src(lv_obj_t *img)
Get the image animation images source.
- 参数:
img -- pointer to an animation image object
- 返回:
a pointer that will point to a series images
-
uint8_t lv_animimg_get_src_count(lv_obj_t *img)
Get the image animation images source.
- 参数:
img -- pointer to an animation image object
- 返回:
the number of source images
-
uint32_t lv_animimg_get_duration(lv_obj_t *img)
Get the image animation duration time. unit:ms
- 参数:
img -- pointer to an animation image object
- 返回:
the animation duration time
Variables
-
const lv_obj_class_t lv_animimg_class