Enum embedded_text::alignment::VerticalAlignment [−][src]
pub enum VerticalAlignment {
Top,
Middle,
Bottom,
Scrolling,
}Expand description
Vertical text alignment options.
Variants
Top aligned text.
The first line of the text will be rendered at the top of the text box.
Middle aligned text.
The text will be vertically centered within the text box.
Bottom aligned text.
The last line of the text will be aligned to the bottom of the text box.
Scrolling alignment.
Aligns the last line of the text to be always visible. If the text fits inside the text box, it will be top aligned. If the text is longer, it will be bottom aligned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VerticalAlignmentimpl Send for VerticalAlignmentimpl Sync for VerticalAlignmentimpl Unpin for VerticalAlignmentimpl UnwindSafe for VerticalAlignmentBlanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
type Output = T
type Output = TShould always be Self
Casts the value.
Casts the value.
Casts the value.