add lv_anim_del_all()
This commit is contained in:
@@ -149,6 +149,15 @@ bool lv_anim_del(void * var, lv_anim_exec_xcb_t exec_cb)
|
||||
return del;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all the animations animation
|
||||
*/
|
||||
void lv_anim_del_all(void)
|
||||
{
|
||||
_lv_ll_clear(&LV_GC_ROOT(_lv_anim_ll));
|
||||
anim_mark_list_change();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the animation of a variable and its `exec_cb`.
|
||||
* @param var pointer to variable
|
||||
|
||||
@@ -312,6 +312,11 @@ static inline uint32_t lv_anim_get_delay(lv_anim_t * a)
|
||||
*/
|
||||
bool lv_anim_del(void * var, lv_anim_exec_xcb_t exec_cb);
|
||||
|
||||
/**
|
||||
* Delete all the animations animation
|
||||
*/
|
||||
void lv_anim_del_all(void);
|
||||
|
||||
/**
|
||||
* Get the animation of a variable and its `exec_cb`.
|
||||
* @param var pointer to variable
|
||||
|
||||
Reference in New Issue
Block a user