lv_animimage.h
Typedefs
-
typedef _lv_animimg_part_t lv_animimg_part_t
Functions
-
lv_obj_t *lv_animimg_create(lv_obj_t *parent)
Create an animation image objects
- Parameters:
parent -- pointer to an object, it will be the parent of the new button
- Returns:
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.
- Parameters:
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.
- Parameters:
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
- Parameters:
img -- pointer to an animation image object
duration -- the duration
-
void lv_animimg_set_repeat_count(lv_obj_t *img, uint32_t count)
Set the image animation repeatedly play times.
- Parameters:
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.
- Parameters:
img -- pointer to an animation image object
- Returns:
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.
- Parameters:
img -- pointer to an animation image object
- Returns:
the number of source images
Variables
-
const lv_obj_class_t lv_animimg_class
-
struct lv_animimg_t