idek stuff like stack
This commit is contained in:
13
src/core/stack.rs
Normal file
13
src/core/stack.rs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user