chore: stage remaining scaffolding
This commit is contained in:
parent
5a8823fddb
commit
231af23d1c
14 changed files with 895 additions and 1 deletions
13
src/tui/animations/mod.rs
Normal file
13
src/tui/animations/mod.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use rsille::canvas::Canvas;
|
||||
use std::time::Duration;
|
||||
|
||||
pub trait Animation {
|
||||
fn update(&mut self, delta: Duration);
|
||||
fn render(&self, canvas: &mut Canvas);
|
||||
fn is_finished(&self) -> bool;
|
||||
}
|
||||
|
||||
pub trait ProgressAnimation: Animation {
|
||||
fn set_progress(&mut self, progress: f64);
|
||||
fn get_progress(&self) -> f64;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue