Skip to main content

uzor_core/containers/
stack.rs

1use crate::layout::types::*;
2use crate::types::state::WidgetId;
3
4pub struct Stack;
5impl Stack {
6    #[allow(clippy::new_ret_no_self)]
7    pub fn new(id: impl Into<WidgetId>) -> LayoutNode {
8        LayoutNode::new(id)
9            .with_style(LayoutStyle {
10                display: Display::Stack,
11                ..Default::default()
12            })
13    }
14}