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