idek stuff like stack

This commit is contained in:
iris committed 2025-08-15 22:59:58 -04:00
1 parent a7dfacb83e
commit f4aef3a983
15 files changed
+138 -42

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
use crate::{Widget, WidgetId};
pub struct Stack {
pub children: Vec<WidgetId>,
}
impl<Ctx> Widget<Ctx> for Stack {
fn draw(&self, painter: &mut crate::Painter<Ctx>) {
for child in &self.children {
painter.draw(child);
}
}
}