zen_rs/aspects/order.rs
1//! Order/Align aspects types
2
3/// The order of elements in the container relative to the container area
4#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
5pub enum Order {
6 /// T -> B
7 #[default]
8 TopToBottom,
9 /// B -> T
10 BottomToTop,
11 /// L -> R
12 LefToRight,
13 /// R -> L
14 RightToLeft,
15}
16
17/// Arrangement of the self in the self container
18#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
19pub enum Align {
20 #[default]
21 Left,
22 Center,
23 Right,
24 SpaceBetween,
25}