Add a Screen
struct for holding components
This commit is contained in:
parent
e457f3e1e5
commit
a9e2f628ad
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
pub struct Screen {
|
||||||
|
pub components: Vec<Box<dyn Draw>>,
|
||||||
|
}
|
||||||
|
|
||||||
pub trait Draw {
|
pub trait Draw {
|
||||||
fn draw(&self);
|
fn draw(&self);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue