refactor: lv_anim_set_playback_time -> lv_anim_set_playback_duration
This commit is contained in:
@@ -39,12 +39,12 @@ void lv_example_flex_5(void)
|
||||
|
||||
lv_anim_set_exec_cb(&a, row_gap_anim);
|
||||
lv_anim_set_duration(&a, 500);
|
||||
lv_anim_set_playback_time(&a, 500);
|
||||
lv_anim_set_playback_duration(&a, 500);
|
||||
lv_anim_start(&a);
|
||||
|
||||
lv_anim_set_exec_cb(&a, column_gap_anim);
|
||||
lv_anim_set_duration(&a, 3000);
|
||||
lv_anim_set_playback_time(&a, 3000);
|
||||
lv_anim_set_playback_duration(&a, 3000);
|
||||
lv_anim_start(&a);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ a_row.set_values(0, 10)
|
||||
a_row.set_repeat_count(lv.ANIM_REPEAT_INFINITE)
|
||||
|
||||
a_row.set_time(500)
|
||||
a_row.set_playback_time(500)
|
||||
a_row.set_playback_duration(500)
|
||||
a_row.set_custom_exec_cb(lambda a,val: row_gap_anim(cont,val))
|
||||
lv.anim_t.start(a_row)
|
||||
|
||||
@@ -40,7 +40,7 @@ a_col.set_values(0, 10)
|
||||
a_col.set_repeat_count(lv.ANIM_REPEAT_INFINITE)
|
||||
|
||||
a_col.set_time(3000)
|
||||
a_col.set_playback_time(3000)
|
||||
a_col.set_playback_duration(3000)
|
||||
a_col.set_custom_exec_cb(lambda a,val: column_gap_anim(cont,val))
|
||||
|
||||
lv.anim_t.start(a_col)
|
||||
|
||||
Reference in New Issue
Block a user