idek stuff like stack
This commit is contained in:
1 parent
a7dfacb83e
commit
f4aef3a983
15 files changed
+138
-42
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user