#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Direction {
Horizontal,
Vertical,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Align {
Start,
Center,
End,
Stretch,
}
#[derive(Debug, Clone, PartialEq)]
pub enum Container {
Stack {
direction: Direction,
gap: u32,
align: Align,
},
Grid {
columns: Vec<crate::SizeType>,
rows: Vec<crate::SizeType>,
col_gap: u32,
row_gap: u32,
},
Layer,
}
impl Container {
pub fn vertical() -> Self {
Self::Stack {
direction: Direction::Vertical,
gap: 1,
align: Align::Start,
}
}
pub fn horizontal() -> Self {
Self::Stack {
direction: Direction::Horizontal,
gap: 1,
align: Align::Start,
}
}
}