primitives/prelude/enums/text_align.rs
1/// Representing alternative horizontal text alignments for
2/// `TextStyle` implementations and layout of multiple lines of text
3///
4#[derive(Clone, Copy, Debug, PartialEq, Eq)]
5pub enum TextAlign {
6 /// Justified text
7 Justify,
8 /// Left aligned text
9 Left,
10 /// Center aligned text
11 Center,
12 /// Right aligned text
13 Right,
14}
15
16impl Default for TextAlign {
17 fn default() -> Self {
18 TextAlign::Left
19 }
20}