lv_anim_timeline.h
Functions
-
lv_anim_timeline_t *lv_anim_timeline_create(void)
Create an animation timeline.
- Returns:
pointer to the animation timeline.
-
void lv_anim_timeline_delete(lv_anim_timeline_t *at)
Delete animation timeline.
- Parameters:
at -- pointer to the animation timeline.
-
void lv_anim_timeline_add(lv_anim_timeline_t *at, uint32_t start_time, lv_anim_t *a)
Add animation to the animation timeline.
- Parameters:
at -- pointer to the animation timeline.
start_time -- the time the animation started on the timeline, note that start_time will override the value of delay.
a -- pointer to an animation.
-
uint32_t lv_anim_timeline_start(lv_anim_timeline_t *at)
Start the animation timeline.
- Parameters:
at -- pointer to the animation timeline.
- Returns:
total time spent in animation timeline.
-
void lv_anim_timeline_stop(lv_anim_timeline_t *at)
Stop the animation timeline.
- Parameters:
at -- pointer to the animation timeline.
-
void lv_anim_timeline_set_reverse(lv_anim_timeline_t *at, bool reverse)
Set the playback direction of the animation timeline.
- Parameters:
at -- pointer to the animation timeline.
reverse -- whether to play in reverse.
-
void lv_anim_timeline_set_progress(lv_anim_timeline_t *at, uint16_t progress)
Set the progress of the animation timeline.
- Parameters:
at -- pointer to the animation timeline.
progress -- set value 0~65535 to map 0~100% animation progress.
-
uint32_t lv_anim_timeline_get_playtime(lv_anim_timeline_t *at)
Get the time used to play the animation timeline.
- Parameters:
at -- pointer to the animation timeline.
- Returns:
total time spent in animation timeline.
-
bool lv_anim_timeline_get_reverse(lv_anim_timeline_t *at)
Get whether the animation timeline is played in reverse.
- Parameters:
at -- pointer to the animation timeline.
- Returns:
return true if it is reverse playback.
-
struct lv_anim_timeline_dsc_t
-
struct lv_anim_timeline_t
Public Members
-
lv_anim_timeline_dsc_t *anim_dsc
Dynamically allocated anim dsc array
-
uint32_t anim_dsc_cnt
The length of anim dsc array
-
bool reverse
Reverse playback
-
lv_anim_timeline_dsc_t *anim_dsc