Home
last modified time | relevance | path

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

/lvgl-3.4.0/src/widgets/
Dlv_switch.c176 lv_coord_t anim_length = lv_area_get_width(&obj->coords) - knob_size; in draw_main() local
180 anim_value_x = (anim_length * sw->anim_state) / LV_SWITCH_ANIM_STATE_END; in draw_main()
185 anim_value_x = chk ? anim_length : 0; in draw_main()
189 anim_value_x = anim_length - anim_value_x; in draw_main()
Dlv_bar.c292 lv_coord_t anim_length = hor ? indicw : indich; in draw_indic() local
312 … (int32_t)((int32_t)anim_length * (bar->start_value_anim.anim_start - bar->min_value)) / range; in draw_indic()
314 … (int32_t)((int32_t)anim_length * (bar->start_value_anim.anim_end - bar->min_value)) / range; in draw_indic()
322 …anim_start_value_x = (int32_t)((int32_t)anim_length * (bar->start_value - bar->min_value)) / range; in draw_indic()
327 … (int32_t)((int32_t)anim_length * (bar->cur_value_anim.anim_start - bar->min_value)) / range; in draw_indic()
329 … (int32_t)((int32_t)anim_length * (bar->cur_value_anim.anim_end - bar->min_value)) / range; in draw_indic()
336 … anim_cur_value_x = (int32_t)((int32_t)anim_length * (bar->cur_value - bar->min_value)) / range; in draw_indic()
361 shift = (-bar->min_value * anim_length) / range; in draw_indic()