lv_animimage.h

API reference for lv_animimage.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_animimage_private.h

Functions

lv_animimg_set_src

Set the image animation images source.

 
void lv_animimg_set_src(lv_obj_t *obj, const void *dsc[], size_t num)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an animation image object
dscconst void *pointer to a series images
numsize_timages' number

lv_animimg_set_src_reverse

Set the images source for flip playback of animation image.

 
void lv_animimg_set_src_reverse(lv_obj_t *obj, const void *dsc[], size_t num)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an animation image object
dscconst void *pointer to a series images
numsize_timages' number

lv_animimg_set_duration

Set the image animation duration time. unit:ms

 
void lv_animimg_set_duration(lv_obj_t *obj, uint32_t duration)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an animation image object
durationuint32_tthe duration in milliseconds

lv_animimg_set_repeat_count

Set the image animation repeatedly play times.

 
void lv_animimg_set_repeat_count(lv_obj_t *obj, uint32_t count)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an animation image object
countuint32_tthe number of times to repeat the animation

lv_animimg_set_reverse_duration

Make the image animation to play back to when the forward direction is ready.

 
void lv_animimg_set_reverse_duration(lv_obj_t *obj, uint32_t duration)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an animation image object
durationuint32_tthe duration of the playback image animation in milliseconds. 0: disable playback

lv_animimg_set_reverse_delay

Make the image animation to play back to when the forward direction is ready.

 
void lv_animimg_set_reverse_delay(lv_obj_t *obj, uint32_t duration)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an animation image object
durationuint32_tdelay in milliseconds before starting the playback image animation.

lv_animimg_set_start_cb

Set a function call when the animation image really starts (considering delay)

 
void lv_animimg_set_start_cb(lv_obj_t *obj, lv_anim_start_cb_t start_cb)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an animation image object
start_cblv_anim_start_cb_ta function call when the animation is start

lv_animimg_set_completed_cb

Set a function call when the animation is completed

 
void lv_animimg_set_completed_cb(lv_obj_t *obj, lv_anim_completed_cb_t completed_cb)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an animation image object
completed_cblv_anim_completed_cb_ta function call when the animation is completed

Enums

_lv_property_animimage_id_t

Modified by NXP in 2025

NameValue
LV_PROPERTY_ANIMIMAGE_SRC(LV_PROPERTY_ANIMIMAGE_START + ((int) 0 )) | (( 5 ) << 28 ) | (( 1 ) << 24 )
LV_PROPERTY_ANIMIMAGE_DURATION(LV_PROPERTY_ANIMIMAGE_START + ((int) 1 )) | (( 1 ) << 28 )
LV_PROPERTY_ANIMIMAGE_REPEAT_COUNT(LV_PROPERTY_ANIMIMAGE_START + ((int) 2 )) | (( 1 ) << 28 )
LV_PROPERTY_ANIMIMAGE_SRC_COUNT(LV_PROPERTY_ANIMIMAGE_START + ((int) 3 )) | (( 1 ) << 28 )
LV_PROPERTY_ANIMIMAGE_END

lv_animimg_part_t

Image parts

Name
LV_ANIM_IMAGE_PART_MAIN

Variables

lv_animimg_class

 
const lv_obj_class_t lv_animimg_class

Dependencies

How is this guide?

Last updated on

On this page