Add a Screen struct for holding components

This commit is contained in:
Manuel Thalmann 2025-04-11 19:50:13 +02:00
parent e457f3e1e5
commit a9e2f628ad
Signed by: manuth
SSH key fingerprint: SHA256:HsMLC+7kJWALP6YCYCoopxNbUnghwSGLVcG76SECT5c

View file

@ -1,3 +1,7 @@
pub struct Screen {
pub components: Vec<Box<dyn Draw>>,
}
pub trait Draw {
fn draw(&self);
}