diff --git a/gui/src/lib.rs b/gui/src/lib.rs index 1ae5aef..9cbc855 100644 --- a/gui/src/lib.rs +++ b/gui/src/lib.rs @@ -2,6 +2,14 @@ pub struct Screen { pub components: Vec<Box<dyn Draw>>, } +impl Screen { + pub fn run(&self) { + for component in self.components.iter() { + component.draw(); + } + } +} + pub trait Draw { fn draw(&self); }