lv_anim.h
API reference for lv_anim.h
Functions
lv_anim_set_var
Set a variable to animate
void lv_anim_set_var(lv_anim_t *a, void *var)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
var | void * | pointer to a variable to animate May be NULL. |
lv_anim_set_exec_cb
Set a function to animate var
void lv_anim_set_exec_cb(lv_anim_t *a, lv_anim_exec_xcb_t exec_cb)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
exec_cb | lv_anim_exec_xcb_t | a function to execute during animation LVGL's built-in functions can be used. E.g. lv_obj_set_x |
lv_anim_set_duration
Set the duration of an animation
void lv_anim_set_duration(lv_anim_t *a, uint32_t duration)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
duration | uint32_t | duration of the animation in milliseconds |
lv_anim_set_delay
Set a delay before starting the animation
void lv_anim_set_delay(lv_anim_t *a, uint32_t delay)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
delay | uint32_t | delay before the animation in milliseconds |
lv_anim_set_values
Set the start and end values of an animation
void lv_anim_set_values(lv_anim_t *a, int32_t start, int32_t end)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
start | int32_t | the start value |
end | int32_t | the end value |
lv_anim_set_custom_exec_cb
Similar to lv_anim_set_exec_cb but lv_anim_custom_exec_cb_t receives lv_anim_t * as its first parameter instead of void *. This function might be used when LVGL is bound to other languages because it's more consistent to have lv_anim_t * as first parameter.
void lv_anim_set_custom_exec_cb(lv_anim_t *a, lv_anim_custom_exec_cb_t exec_cb)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
exec_cb | lv_anim_custom_exec_cb_t | a function to execute. |
lv_anim_set_path_cb
Set the path (curve) of the animation.
void lv_anim_set_path_cb(lv_anim_t *a, lv_anim_path_cb_t path_cb)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
path_cb | lv_anim_path_cb_t | a function to set the current value of the animation. |
lv_anim_set_start_cb
Set a function call when the animation really starts (considering delay)
void lv_anim_set_start_cb(lv_anim_t *a, lv_anim_start_cb_t start_cb)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
start_cb | lv_anim_start_cb_t | a function call when the animation starts |
lv_anim_set_get_value_cb
Set a function to use the current value of the variable and make start and end value relative to the returned current value.
void lv_anim_set_get_value_cb(lv_anim_t *a, lv_anim_get_value_cb_t get_value_cb)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
get_value_cb | lv_anim_get_value_cb_t | a function call when the animation starts |
lv_anim_set_completed_cb
Set a function call when the animation is completed
void lv_anim_set_completed_cb(lv_anim_t *a, lv_anim_completed_cb_t completed_cb)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
completed_cb | lv_anim_completed_cb_t | a function call when the animation is fully completed |
lv_anim_set_deleted_cb
Set a function call when the animation is deleted.
void lv_anim_set_deleted_cb(lv_anim_t *a, lv_anim_deleted_cb_t deleted_cb)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
deleted_cb | lv_anim_deleted_cb_t | a function call when the animation is deleted |
lv_anim_set_reverse_duration
Make the animation to play back to when the forward direction is ready
void lv_anim_set_reverse_duration(lv_anim_t *a, uint32_t duration)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
duration | uint32_t | duration of playback animation in milliseconds. 0: disable playback |
lv_anim_set_reverse_time
Legacy lv_anim_set_reverse_time API will be removed soon, use lv_anim_set_reverse_duration instead.
void lv_anim_set_reverse_time(lv_anim_t *a, uint32_t duration)| Name | Type |
|---|---|
a | lv_anim_t * |
duration | uint32_t |
lv_anim_set_reverse_delay
Make the animation to play back to when the forward direction is ready
void lv_anim_set_reverse_delay(lv_anim_t *a, uint32_t delay)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
delay | uint32_t | delay in milliseconds before starting the playback animation. |
lv_anim_set_repeat_count
Make the animation repeat itself.
void lv_anim_set_repeat_count(lv_anim_t *a, uint32_t cnt)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
cnt | uint32_t | repeat count or LV_ANIM_REPEAT_INFINITE for infinite repetition. 0: to disable repetition. |
lv_anim_set_repeat_delay
Set a delay before repeating the animation.
void lv_anim_set_repeat_delay(lv_anim_t *a, uint32_t delay)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
delay | uint32_t | delay in milliseconds before repeating the animation. |
lv_anim_set_early_apply
Set a whether the animation's should be applied immediately or only when the delay expired.
void lv_anim_set_early_apply(lv_anim_t *a, bool en)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
en | bool | true: apply the start value immediately in lv_anim_start; false: apply the start value only when delay ms is elapsed and the animations really starts |
lv_anim_set_user_data
Set the custom user data field of the animation.
void lv_anim_set_user_data(lv_anim_t *a, void *user_data)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
user_data | void * | pointer to the new user_data. May be NULL. |
lv_anim_set_bezier3_param
Set parameter for cubic bezier path
void lv_anim_set_bezier3_param(lv_anim_t *a, int16_t x1, int16_t y1, int16_t x2, int16_t y2)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
x1 | int16_t | first control point X |
y1 | int16_t | first control point Y |
x2 | int16_t | second control point X |
y2 | int16_t | second control point Y |
lv_anim_set_external_data
Associates external user data with an animation instance.
Attaches arbitrary user-defined data to an LVGL animation object along with an optional destructor callback that will be automatically invoked when the animation completes or is deleted, enabling proper resource cleanup.
void lv_anim_set_external_data(lv_anim_t *anim, void *data, void(*free_cb)(void *data))| Name | Type | Description |
|---|---|---|
anim | lv_anim_t * | Pointer to the animation object to configure |
data | void * | User-defined data pointer to associate May be NULL. |
free_cb | void(*)(void *data) | Cleanup callback that receives ext_data when: May be NULL.- Animation completes naturally - Animation is deleted prematurely - New data replaces current association NULL indicates no cleanup required |
lv_anim_get_delay
Get a delay before starting the animation
uint32_t lv_anim_get_delay(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an initialized lv_anim_t variable |
Returns: uint32_t — delay before the animation in milliseconds
lv_anim_get_playtime
Get the time used to play the animation.
uint32_t lv_anim_get_playtime(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an animation. |
Returns: uint32_t — the play time in milliseconds.
lv_anim_get_time
Get the duration of an animation
uint32_t lv_anim_get_time(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an initialized lv_anim_t variable |
Returns: uint32_t — the duration of the animation in milliseconds
lv_anim_get_repeat_count
Get the repeat count of the animation.
uint32_t lv_anim_get_repeat_count(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an initialized lv_anim_t variable |
Returns: uint32_t — the repeat count or LV_ANIM_REPEAT_INFINITE for infinite repetition. 0: disabled repetition.
lv_anim_get_user_data
Get the user_data field of the animation
void * lv_anim_get_user_data(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an initialized lv_anim_t variable |
Returns: void * — the pointer to the custom user_data of the animation
lv_anim_get
Get the animation of a variable and its exec_cb.
lv_anim_t * lv_anim_get(void *var, lv_anim_exec_xcb_t exec_cb)| Name | Type | Description |
|---|---|---|
var | void * | pointer to variable |
exec_cb | lv_anim_exec_xcb_t | a function pointer which is animating 'var', or NULL to return first matching 'var' |
Returns: lv_anim_t * — pointer to the animation.
lv_anim_get_timer
Get global animation refresher timer.
lv_timer_t * lv_anim_get_timer(void)Returns: lv_timer_t * — pointer to the animation refresher timer.
lv_anim_custom_get
Get the animation of a variable and its exec_cb. This function exists because it's logical that all anim. functions receives an lv_anim_t as their first parameter. It's not practical in C but might make the API more consequent and makes easier to generate bindings.
lv_anim_t * lv_anim_custom_get(lv_anim_t *a, lv_anim_custom_exec_cb_t exec_cb)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an animation. May be NULL. When NULL the animations whose variable is NULL are matched. |
exec_cb | lv_anim_custom_exec_cb_t | a function pointer which is animating 'var', or NULL to return first matching 'var' |
Returns: lv_anim_t * — pointer to the animation.
lv_anim_init
Initialize an animation variable. E.g.: lv_anim_t a; lv_anim_init(&a); lv_anim_set_...(&a); lv_anim_start(&a);
void lv_anim_init(lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an lv_anim_t variable to initialize |
lv_anim_resume
Resumes a paused animation
void lv_anim_resume(lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
lv_anim_pause
Pauses the animation
void lv_anim_pause(lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
lv_anim_pause_for
Pauses the animation for ms milliseconds
void lv_anim_pause_for(lv_anim_t *a, uint32_t ms)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
ms | uint32_t | the pause time in milliseconds |
lv_anim_is_paused
Check if the animation is paused
bool lv_anim_is_paused(lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an initialized lv_anim_t variable |
Returns: bool — true if the animation is paused else false
lv_anim_start
Create an animation
lv_anim_t * lv_anim_start(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | an initialized 'anim_t' variable. Not required after call. |
Returns: lv_anim_t * — pointer to the created animation (different from the a parameter)
lv_anim_delete
Delete animation(s) of a variable with a given animator function
bool lv_anim_delete(void *var, lv_anim_exec_xcb_t exec_cb)| Name | Type | Description |
|---|---|---|
var | void * | pointer to variable May be NULL. |
exec_cb | lv_anim_exec_xcb_t | a function pointer which is animating 'var', or NULL to ignore it and delete all the animations of 'var |
Returns: bool — true: at least 1 animation is deleted, false: no animation is deleted
lv_anim_delete_all
Delete all the animations
void lv_anim_delete_all(void)lv_anim_custom_delete
Delete an animation by getting the animated variable from a. Only animations with exec_cb will be deleted. This function exists because it's logical that all anim. functions receives an lv_anim_t as their first parameter. It's not practical in C but might make the API more consequent and makes easier to generate bindings.
bool lv_anim_custom_delete(lv_anim_t *a, lv_anim_custom_exec_cb_t exec_cb)| Name | Type | Description |
|---|---|---|
a | lv_anim_t * | pointer to an animation. May be NULL. When NULL the animations whose variable is NULL are matched. |
exec_cb | lv_anim_custom_exec_cb_t | a function pointer which is animating 'var', or NULL to ignore it and delete all the animations of 'var |
Returns: bool — true: at least 1 animation is deleted, false: no animation is deleted
lv_anim_count_running
Get the number of currently running animations
uint16_t lv_anim_count_running(void)Returns: uint16_t — the number of running animations
lv_anim_speed
Store the speed as a special value which can be used as time in animations. It will be converted to time internally based on the start and end values. The return value can be used as a constant with multiple animations and let LVGL convert the speed to time based on the actual values. LIMITATION: the max time stored this way can be 10,000 ms.
uint32_t lv_anim_speed(uint32_t speed)| Name | Type | Description |
|---|---|---|
speed | uint32_t | the speed of the animation in with unit / sec resolution in 0..10k range |
Returns: uint32_t — a special value which can be used as an animation time
internally speed is stored as 10 unit/sec
lv_anim_speed_clamped
Store the speed as a special value which can be used as time in animations. It will be converted to time internally based on the start and end values. The return value can be used as a constant with multiple animations and let LVGL convert the speed to time based on the actual values.
uint32_t lv_anim_speed_clamped(uint32_t speed, uint32_t min_time, uint32_t max_time)| Name | Type | Description |
|---|---|---|
speed | uint32_t | the speed of the animation in as unit / sec resolution in 0..10k range |
min_time | uint32_t | the minimum time in 0..10k range |
max_time | uint32_t | the maximum time in 0..10k range |
Returns: uint32_t — a special value in where all three values are stored and can be used as an animation time
internally speed is stored as 10 unit/sec
internally min/max_time are stored with 10 ms unit
lv_anim_resolve_speed
Resolve the speed (created with lv_anim_speed or lv_anim_speed_clamped) to time based on start and end values.
uint32_t lv_anim_resolve_speed(uint32_t speed_or_time, int32_t start, int32_t end)| Name | Type | Description |
|---|---|---|
speed_or_time | uint32_t | return values of lv_anim_speed or lv_anim_speed_clamped |
start | int32_t | the start value of the animation |
end | int32_t | the end value of the animation |
Returns: uint32_t — the time required to get from start to end with the given speed setting
lv_anim_speed_to_time
Calculate the time of an animation based on its speed, start and end values. It simpler than lv_anim_speed or lv_anim_speed_clamped as it converts speed, start, and end to a time immediately. As it's simpler there is no limit on the maximum time.
uint32_t lv_anim_speed_to_time(uint32_t speed, int32_t start, int32_t end)| Name | Type | Description |
|---|---|---|
speed | uint32_t | the speed of the animation |
start | int32_t | the start value |
end | int32_t | the end value |
Returns: uint32_t — the time of the animation in milliseconds
lv_anim_refr_now
Manually refresh the state of the animations. Useful to make the animations running in a blocking process where lv_timer_handler can't run for a while. Shouldn't be used directly because it is called in lv_refr_now().
void lv_anim_refr_now(void)lv_anim_path_linear
Calculate the current value of an animation applying linear characteristic
int32_t lv_anim_path_linear(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an animation |
Returns: int32_t — the current value to set
lv_anim_path_ease_in
Calculate the current value of an animation slowing down the start phase
int32_t lv_anim_path_ease_in(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an animation |
Returns: int32_t — the current value to set
lv_anim_path_ease_out
Calculate the current value of an animation slowing down the end phase
int32_t lv_anim_path_ease_out(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an animation |
Returns: int32_t — the current value to set
lv_anim_path_ease_in_out
Calculate the current value of an animation applying an "S" characteristic (cosine)
int32_t lv_anim_path_ease_in_out(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an animation |
Returns: int32_t — the current value to set
lv_anim_path_overshoot
Calculate the current value of an animation with overshoot at the end
int32_t lv_anim_path_overshoot(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an animation |
Returns: int32_t — the current value to set
lv_anim_path_bounce
Calculate the current value of an animation with 3 bounces
int32_t lv_anim_path_bounce(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an animation |
Returns: int32_t — the current value to set
lv_anim_path_step
Calculate the current value of an animation applying step characteristic. (Set end value on the end of the animation)
int32_t lv_anim_path_step(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an animation |
Returns: int32_t — the current value to set
lv_anim_path_custom_bezier3
A custom cubic bezier animation path, need to specify cubic-parameters in a->parameter.bezier3
int32_t lv_anim_path_custom_bezier3(const lv_anim_t *a)| Name | Type | Description |
|---|---|---|
a | const lv_anim_t * | pointer to an animation |
Returns: int32_t — the current value to set
Structs
lv_anim_bezier3_para_t
Parameter used when path is custom_bezier
| Member | Type | Description |
|---|---|---|
x1 | int16_t | |
y1 | int16_t | |
x2 | int16_t | |
y2 | int16_t |
_lv_anim_t
Describes an animation
| Member | Type | Description |
|---|---|---|
ext_data | lv_ext_data_t | |
var | void * | Variable (Widget or other user-provided object) to animate |
exec_cb | lv_anim_exec_xcb_t | Function to execute to animate |
custom_exec_cb | lv_anim_custom_exec_cb_t | Function to execute to animate, same purpose as exec_cb but different parameters |
start_cb | lv_anim_start_cb_t | Call it when animation is starts (considering delay) |
completed_cb | lv_anim_completed_cb_t | Call it when animation is fully completed |
deleted_cb | lv_anim_deleted_cb_t | Call it when animation is deleted |
get_value_cb | lv_anim_get_value_cb_t | Get current value in relative mode |
user_data | void * | Custom user data |
path_cb | lv_anim_path_cb_t | Provides path (curve) of animation |
start_value | int32_t | Start value |
current_value | int32_t | Current value |
end_value | int32_t | End value |
duration | int32_t | Animation duration in ms |
act_time | int32_t | Ms elapsed since animation started. Set to negative to make delay. |
reverse_delay | uint32_t | Wait (in ms) after forward play ends and before reverse play begins. |
reverse_duration | uint32_t | Reverse animation duration in ms |
repeat_delay | uint32_t | Wait before repeating |
repeat_cnt | uint32_t | Repeat count for animation |
parameter | union _lv_anim_t::_lv_anim_path_para_t | |
last_timer_run | uint32_t | |
pause_time | uint32_t | The time when the animation was paused |
pause_duration | uint32_t | The amount of the time the animation must stay paused for |
is_paused | uint8_t | Indicates that the animation is paused |
reverse_play_in_progress | uint8_t | Reverse play is in progress |
run_round | uint8_t | When not equal to global.anim_state.anim_run_round (which toggles each time animation timer executes), indicates this animation needs to be updated. |
start_cb_called | uint8_t | Indicates that start_cb was already called |
early_apply | uint8_t | 1: Apply start value immediately even is there is a delay |
_lv_anim_t::_lv_anim_path_para_t
| Member | Type | Description |
|---|---|---|
bezier3 | lv_anim_bezier3_para_t | Parameter used when path is custom_bezier |
Typedefs
lv_anim_enable_t
typedef bool lv_anim_enable_tUsed by 19 functions
lv_obj_scroll_by— paramanim_enlv_obj_scroll_by_bounded— paramanim_enlv_obj_scroll_to— paramanim_enlv_obj_scroll_to_x— paramanim_enlv_obj_scroll_to_y— paramanim_enlv_obj_scroll_to_view— paramanim_enlv_obj_scroll_to_view_recursive— paramanim_enlv_obj_update_snap— paramanim_enlv_obj_readjust_scroll— paramanim_enlv_gridnav_set_focused— paramanim_enlv_bar_set_value— paramanimlv_bar_set_start_value— paramanimlv_roller_set_selected— paramanimlv_roller_set_selected_str— paramanimlv_slider_set_value— paramanimlv_slider_set_start_value— paramanimlv_tabview_set_active— paramanim_enlv_tileview_set_tile— paramanim_enlv_tileview_set_tile_by_index— paramanim_en
lv_anim_path_cb_t
typedef int32_t(* lv_anim_path_cb_t) (const lv_anim_t *)Get the current value during an animation
Used by 2 functions
lv_anim_set_path_cb— parampath_cblv_style_transition_dsc_init— parampath_cb
lv_anim_exec_xcb_t
typedef void(* lv_anim_exec_xcb_t) (void *, int32_t)Generic prototype of "animator" functions. First parameter is the variable to animate. Second parameter is the value to set. Compatible with lv_xxx_set_yyy(obj, value) functions The x in _xcb_t means it's not a fully generic prototype because it doesn't receive lv_anim_t * as its first argument
Used by 3 functions
lv_anim_set_exec_cb— paramexec_cblv_anim_delete— paramexec_cblv_anim_get— paramexec_cb
lv_anim_custom_exec_cb_t
typedef void(* lv_anim_custom_exec_cb_t) (lv_anim_t *, int32_t)Same as lv_anim_exec_xcb_t but receives lv_anim_t * as the first parameter. It's more consistent but less convenient. Might be used by binding generator functions.
Used by 3 functions
lv_anim_set_custom_exec_cb— paramexec_cblv_anim_custom_delete— paramexec_cblv_anim_custom_get— paramexec_cb
lv_anim_completed_cb_t
typedef void(* lv_anim_completed_cb_t) (lv_anim_t *)Callback to call when the animation is ready
Used by 2 functions
lv_anim_set_completed_cb— paramcompleted_cblv_animimg_set_completed_cb— paramcompleted_cb
lv_anim_start_cb_t
typedef void(* lv_anim_start_cb_t) (lv_anim_t *)Callback to call when the animation really stars (considering delay)
Used by 2 functions
lv_anim_set_start_cb— paramstart_cblv_animimg_set_start_cb— paramstart_cb
lv_anim_get_value_cb_t
typedef int32_t(* lv_anim_get_value_cb_t) (lv_anim_t *)Callback used when the animation values are relative to get the current value
Used by 1 function
lv_anim_set_get_value_cb— paramget_value_cb
lv_anim_deleted_cb_t
typedef void(* lv_anim_deleted_cb_t) (lv_anim_t *)Callback used when the animation is deleted
Used by 1 function
lv_anim_set_deleted_cb— paramdeleted_cb
Macros
LV_ANIM_REPEAT_INFINITE
#define LV_ANIM_REPEAT_INFINITE 0xFFFFFFFFLV_ANIM_PLAYTIME_INFINITE
#define LV_ANIM_PLAYTIME_INFINITE 0xFFFFFFFFLV_ANIM_PAUSE_FOREVER
#define LV_ANIM_PAUSE_FOREVER 0xFFFFFFFF_PARA
#define _PARA(a, x1, y1, x2, y2) \
((a)->parameter.bezier3 = \
(lv_anim_bezier3_para_t) { \
LV_BEZIER_VAL_FLOAT(x1), LV_BEZIER_VAL_FLOAT(y1), \
LV_BEZIER_VAL_FLOAT(x2), LV_BEZIER_VAL_FLOAT(y2) } \
)LV_ANIM_SET_EASE_IN_SINE
#define LV_ANIM_SET_EASE_IN_SINE(a) \
_PARA(a, 0.12, 0, 0.39, 0)LV_ANIM_SET_EASE_OUT_SINE
#define LV_ANIM_SET_EASE_OUT_SINE(a) \
_PARA(a, 0.61, 1, 0.88, 1)LV_ANIM_SET_EASE_IN_OUT_SINE
#define LV_ANIM_SET_EASE_IN_OUT_SINE(a) \
_PARA(a, 0.37, 0, 0.63, 1)LV_ANIM_SET_EASE_IN_QUAD
#define LV_ANIM_SET_EASE_IN_QUAD(a) \
_PARA(a, 0.11, 0, 0.5, 0)LV_ANIM_SET_EASE_OUT_QUAD
#define LV_ANIM_SET_EASE_OUT_QUAD(a) \
_PARA(a, 0.5, 1, 0.89, 1)LV_ANIM_SET_EASE_IN_OUT_QUAD
#define LV_ANIM_SET_EASE_IN_OUT_QUAD(a) \
_PARA(a, 0.45, 0, 0.55, 1)LV_ANIM_SET_EASE_IN_CUBIC
#define LV_ANIM_SET_EASE_IN_CUBIC(a) \
_PARA(a, 0.32, 0, 0.67, 0)LV_ANIM_SET_EASE_OUT_CUBIC
#define LV_ANIM_SET_EASE_OUT_CUBIC(a) \
_PARA(a, 0.33, 1, 0.68, 1)LV_ANIM_SET_EASE_IN_OUT_CUBIC
#define LV_ANIM_SET_EASE_IN_OUT_CUBIC(a) \
_PARA(a, 0.65, 0, 0.35, 1)LV_ANIM_SET_EASE_IN_QUART
#define LV_ANIM_SET_EASE_IN_QUART(a) \
_PARA(a, 0.5, 0, 0.75, 0)LV_ANIM_SET_EASE_OUT_QUART
#define LV_ANIM_SET_EASE_OUT_QUART(a) \
_PARA(a, 0.25, 1, 0.5, 1)LV_ANIM_SET_EASE_IN_OUT_QUART
#define LV_ANIM_SET_EASE_IN_OUT_QUART(a) \
_PARA(a, 0.76, 0, 0.24, 1)LV_ANIM_SET_EASE_IN_QUINT
#define LV_ANIM_SET_EASE_IN_QUINT(a) \
_PARA(a, 0.64, 0, 0.78, 0)LV_ANIM_SET_EASE_OUT_QUINT
#define LV_ANIM_SET_EASE_OUT_QUINT(a) \
_PARA(a, 0.22, 1, 0.36, 1)LV_ANIM_SET_EASE_IN_OUT_QUINT
#define LV_ANIM_SET_EASE_IN_OUT_QUINT(a) \
_PARA(a, 0.83, 0, 0.17, 1)LV_ANIM_SET_EASE_IN_EXPO
#define LV_ANIM_SET_EASE_IN_EXPO(a) \
_PARA(a, 0.7, 0, 0.84, 0)LV_ANIM_SET_EASE_OUT_EXPO
#define LV_ANIM_SET_EASE_OUT_EXPO(a) \
_PARA(a, 0.16, 1, 0.3, 1)LV_ANIM_SET_EASE_IN_OUT_EXPO
#define LV_ANIM_SET_EASE_IN_OUT_EXPO(a) \
_PARA(a, 0.87, 0, 0.13, 1)LV_ANIM_SET_EASE_IN_CIRC
#define LV_ANIM_SET_EASE_IN_CIRC(a) \
_PARA(a, 0.55, 0, 1, 0.45)LV_ANIM_SET_EASE_OUT_CIRC
#define LV_ANIM_SET_EASE_OUT_CIRC(a) \
_PARA(a, 0, 0.55, 0.45, 1)LV_ANIM_SET_EASE_IN_OUT_CIRC
#define LV_ANIM_SET_EASE_IN_OUT_CIRC(a) \
_PARA(a, 0.85, 0, 0.15, 1)LV_ANIM_SET_EASE_IN_BACK
#define LV_ANIM_SET_EASE_IN_BACK(a) \
_PARA(a, 0.36, 0, 0.66, -0.56)LV_ANIM_SET_EASE_OUT_BACK
#define LV_ANIM_SET_EASE_OUT_BACK(a) \
_PARA(a, 0.34, 1.56, 0.64, 1)LV_ANIM_SET_EASE_IN_OUT_BACK
#define LV_ANIM_SET_EASE_IN_OUT_BACK(a) \
_PARA(a, 0.68, -0.6, 0.32, 1.6)LV_ANIM_OFF
#define LV_ANIM_OFF falseCan be used to indicate if animations are enabled or disabled in a case
LV_ANIM_ON
#define LV_ANIM_ON trueDependencies
Last updated on