ferroui_base/media/baseline_alignment.rs
1/// Enum specifying where a box should be positioned vertically.
2#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
3pub enum BaselineAlignment {
4 /// Align top toward the top of the container.
5 Top,
6 /// Center vertically.
7 Center,
8 /// Align bottom toward the bottom of the container.
9 Bottom,
10 /// Align at the baseline.
11 #[default]
12 Baseline,
13 /// Align toward the text's top of the container.
14 TextTop,
15 /// Align toward the text's bottom of the container.
16 TextBottom,
17 /// Align the baseline to the subscript position of the container.
18 Subscript,
19 /// Align the baseline to the superscript position of the container.
20 Superscript,
21}