14 lines
251 B
Rust
14 lines
251 B
Rust
use crate::prelude::*;
|
|
|
|
pub struct Stack {
|
|
pub children: Vec<WidgetId>,
|
|
}
|
|
|
|
impl<Ctx> Widget<Ctx> for Stack {
|
|
fn draw(&self, painter: &mut Painter<Ctx>) {
|
|
for child in &self.children {
|
|
painter.draw(child);
|
|
}
|
|
}
|
|
}
|