fully working h and v grid

This commit is contained in:
2025-07-05 05:21:16 -05:00
parent 6255b9c4f4
commit 8ae6fb49db
4 changed files with 117 additions and 9 deletions
+14
View File
@@ -16,3 +16,17 @@ impl Element for String {
self
}
}
impl Element for (String, u32) {
fn render(&mut self, scope: &mut crate::render_scope::RenderScope) {
scope.draw_text_colored(&self.0, self.1);
}
fn as_any(&self) -> &dyn std::any::Any {
self
}
fn as_any_mut(&mut self) -> &mut dyn std::any::Any {
self
}
}