Home
last modified time | relevance | path

Searched refs:LV_SWITCH_ANIM_STATE_END (Results 1 – 1 of 1) sorted by relevance

/lvgl-latest/src/widgets/
Dlv_switch.c31 #define LV_SWITCH_ANIM_STATE_END 256 macro
180 anim_value_x = (anim_length * sw->anim_state) / LV_SWITCH_ANIM_STATE_END; in draw_main()
251 anim_start = chk ? LV_SWITCH_ANIM_STATE_START : LV_SWITCH_ANIM_STATE_END; in lv_switch_trigger_anim()
252 anim_end = chk ? LV_SWITCH_ANIM_STATE_END : LV_SWITCH_ANIM_STATE_START; in lv_switch_trigger_anim()
257 anim_end = chk ? LV_SWITCH_ANIM_STATE_END : LV_SWITCH_ANIM_STATE_START; in lv_switch_trigger_anim()
260 … uint32_t anim_dur = (anim_dur_full * LV_ABS(anim_start - anim_end)) / LV_SWITCH_ANIM_STATE_END; in lv_switch_trigger_anim()