Enum piet::TextAlignment [−][src]
pub enum TextAlignment {
Start,
End,
Center,
Justified,
}
Expand description
The alignment of text in a TextLayout
.
Variants
Text is aligned to the left edge in left-to-right scripts, and the right edge in right-to-left scripts.
Text is aligned to the right edge in left-to-right scripts, and the left edge in right-to-left scripts.
Lines are centered in the available space.
Line width is increased to fill available space.
This may be achieved through increases in word or character spacing, or through ligatures where available.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TextAlignment
impl Send for TextAlignment
impl Sync for TextAlignment
impl Unpin for TextAlignment
impl UnwindSafe for TextAlignment
Blanket Implementations
Mutably borrows from an owned value. Read more