mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
add lv_anim_get_delay()
This commit is contained in:
parent
d979cb7f21
commit
63ae4a6570
@ -244,6 +244,17 @@ static inline void lv_anim_set_repeat_delay(lv_anim_t * a, uint16_t delay)
|
||||
*/
|
||||
void lv_anim_start(lv_anim_t * a);
|
||||
|
||||
|
||||
/**
|
||||
* Get a delay before starting the animation
|
||||
* @param a pointer to an initialized `lv_anim_t` variable
|
||||
* @return delay before the animation in milliseconds
|
||||
*/
|
||||
static inline int32_t lv_anim_get_delay(lv_anim_t * a)
|
||||
{
|
||||
return -a->act_time;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an animation of a variable with a given animator function
|
||||
* @param var pointer to variable
|
||||
|
Loading…
x
Reference in New Issue
Block a user