summaryrefslogtreecommitdiffstats
path: root/vendor/papergrid/src/config/alignment.rs
blob: 2b3b5e9db2f5c3bb97da96450462f65d4153ed5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/// [`AlignmentHorizontal`] represents an horizontal alignment of a cell content.
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub enum AlignmentHorizontal {
    /// Align to the center.
    Center,
    /// Align on the left.
    Left,
    /// Align on the right.
    Right,
}

/// [`AlignmentVertical`] represents an vertical alignment of a cell content.
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub enum AlignmentVertical {
    /// Align to the center.
    Center,
    /// Align to the top.
    Top,
    /// Align to the bottom.
    Bottom,
}