diff options
Diffstat (limited to 'src/bin/ttyplay/display.rs')
-rw-r--r-- | src/bin/ttyplay/display.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/ttyplay/display.rs b/src/bin/ttyplay/display.rs index c06e849..486cb0b 100644 --- a/src/bin/ttyplay/display.rs +++ b/src/bin/ttyplay/display.rs @@ -21,10 +21,18 @@ impl Display { self.current_frame = idx; } + pub fn get_current_frame(&self) -> usize { + self.current_frame + } + pub fn total_frames(&mut self, n: usize) { self.total_frames = n; } + pub fn get_total_frames(&self) -> usize { + self.total_frames + } + pub fn done_loading(&mut self) { self.done_loading = true; } |