This commit is contained in:
2026-07-14 12:04:07 -04:00
parent ff61fbfc90
commit 7747eeae7c
5 changed files with 22 additions and 7 deletions
+11
View File
@@ -0,0 +1,11 @@
use crate::render::RenderScope;
pub trait Widget {
fn render(&self, scope: &mut RenderScope);
}
impl Widget for str {
fn render(&self, scope: &mut RenderScope) {
scope.draw_text(0, self);
}
}