lv_animimage.h

Enums

enum lv_animimg_part_t

Image parts

Values:

enumerator LV_ANIM_IMAGE_PART_MAIN

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 in milliseconds

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

uint32_t lv_animimg_get_duration(lv_obj_t *img)

Get the image animation duration time. unit:ms

Parameters:

img -- pointer to an animation image object

Returns:

the animation duration time

uint32_t lv_animimg_get_repeat_count(lv_obj_t *img)

Get the image animation repeat play times.

Parameters:

img -- pointer to an animation image object

Returns:

the repeat count

lv_anim_t *lv_animimg_get_anim(lv_obj_t *img)

Get the image animation underlying animation.

Parameters:

img -- pointer to an animation image object

Returns:

the animation reference

Variables

const lv_obj_class_t lv_animimg_class