add lv_anim_del_all()

This commit is contained in:
Gabor Kiss-Vamosi
2021-03-09 10:31:04 +01:00
parent 607e02e52a
commit c908cc98b6
2 changed files with 14 additions and 0 deletions

View File

@@ -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

View File

@@ -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