26#define LV_ANIM_REPEAT_INFINITE 0xFFFF
27#define LV_ANIM_PLAYTIME_INFINITE 0xFFFFFFFF
29LV_EXPORT_CONST_INT(LV_ANIM_REPEAT_INFINITE);
30LV_EXPORT_CONST_INT(LV_ANIM_PLAYTIME_INFINITE);
126static inline void lv_anim_set_var(
lv_anim_t * a,
void * var)
140 a->exec_cb = exec_cb;
148static inline void lv_anim_set_time(
lv_anim_t * a, uint32_t duration)
158static inline void lv_anim_set_delay(
lv_anim_t * a, uint32_t delay)
160 a->act_time = -(int32_t)(delay);
169static inline void lv_anim_set_values(
lv_anim_t * a, int32_t start, int32_t end)
171 a->start_value = start;
172 a->current_value = start;
198 a->path_cb = path_cb;
208 a->start_cb = start_cb;
219 a->get_value_cb = get_value_cb;
229 a->ready_cb = ready_cb;
239 a->deleted_cb = deleted_cb;
247static inline void lv_anim_set_playback_time(
lv_anim_t * a, uint32_t time)
249 a->playback_time = time;
257static inline void lv_anim_set_playback_delay(
lv_anim_t * a, uint32_t delay)
259 a->playback_delay = delay;
267static inline void lv_anim_set_repeat_count(
lv_anim_t * a, uint16_t cnt)
277static inline void lv_anim_set_repeat_delay(
lv_anim_t * a, uint32_t delay)
279 a->repeat_delay = delay;
288static inline void lv_anim_set_early_apply(
lv_anim_t * a,
bool en)
299static inline void lv_anim_set_user_data(
lv_anim_t * a,
void * user_data)
301 a->user_data = user_data;
317static inline uint32_t lv_anim_get_delay(
lv_anim_t * a)
335static inline void * lv_anim_get_user_data(
lv_anim_t * a)
lv_anim_enable_t
Definition lv_anim.h:37
void lv_anim_refr_now(void)
void(* lv_anim_custom_exec_cb_t)(struct _lv_anim_t *, int32_t)
Definition lv_anim.h:58
int32_t(* lv_anim_path_cb_t)(const struct _lv_anim_t *)
Definition lv_anim.h:46
int32_t lv_anim_path_step(const lv_anim_t *a)
uint16_t lv_anim_count_running(void)
void lv_anim_del_all(void)
lv_anim_t * lv_anim_start(const lv_anim_t *a)
struct _lv_timer_t * lv_anim_get_timer(void)
void(* lv_anim_exec_xcb_t)(void *, int32_t)
Definition lv_anim.h:54
int32_t lv_anim_path_ease_out(const lv_anim_t *a)
struct _lv_anim_t lv_anim_t
int32_t lv_anim_path_ease_in(const lv_anim_t *a)
bool lv_anim_del(void *var, lv_anim_exec_xcb_t exec_cb)
int32_t lv_anim_path_ease_in_out(const lv_anim_t *a)
int32_t lv_anim_path_linear(const lv_anim_t *a)
void(* lv_anim_ready_cb_t)(struct _lv_anim_t *)
Definition lv_anim.h:61
int32_t(* lv_anim_get_value_cb_t)(struct _lv_anim_t *)
Definition lv_anim.h:67
void lv_anim_init(lv_anim_t *a)
uint32_t lv_anim_speed_to_time(uint32_t speed, int32_t start, int32_t end)
void(* lv_anim_deleted_cb_t)(struct _lv_anim_t *)
Definition lv_anim.h:70
int32_t lv_anim_path_bounce(const lv_anim_t *a)
int32_t lv_anim_path_overshoot(const lv_anim_t *a)
void(* lv_anim_start_cb_t)(struct _lv_anim_t *)
Definition lv_anim.h:64
uint32_t lv_anim_get_playtime(lv_anim_t *a)
void _lv_anim_core_init(void)
lv_anim_t * lv_anim_get(void *var, lv_anim_exec_xcb_t exec_cb)
lv_anim_start_cb_t start_cb
Definition lv_anim.h:76
uint32_t repeat_delay
Definition lv_anim.h:91
uint8_t start_cb_called
Definition lv_anim.h:98
uint8_t early_apply
Definition lv_anim.h:93
uint8_t run_round
Definition lv_anim.h:97
int32_t time
Definition lv_anim.h:87
void * var
Definition lv_anim.h:74
uint16_t repeat_cnt
Definition lv_anim.h:92
lv_anim_deleted_cb_t deleted_cb
Definition lv_anim.h:78
int32_t current_value
Definition lv_anim.h:85
lv_anim_path_cb_t path_cb
Definition lv_anim.h:83
lv_anim_get_value_cb_t get_value_cb
Definition lv_anim.h:79
uint8_t playback_now
Definition lv_anim.h:96
uint32_t playback_delay
Definition lv_anim.h:89
uint32_t playback_time
Definition lv_anim.h:90
int32_t act_time
Definition lv_anim.h:88
lv_anim_ready_cb_t ready_cb
Definition lv_anim.h:77
int32_t end_value
Definition lv_anim.h:86
lv_anim_exec_xcb_t exec_cb
Definition lv_anim.h:75
int32_t start_value
Definition lv_anim.h:84