FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextAlignment

    enum · ferroui-base · v0.5.0

    enum TextAlignment
    

    Defines how text is aligned.

    View source

    Members

    Left

    Left
    

    The text is left-aligned.

    Source

    Center

    Center
    

    The text is centered.

    Source

    Right

    Right
    

    The text is right-aligned.

    Source

    Start

    Start
    

    The beginning of the text is aligned to the edge of the available space.

    Source

    End

    End
    

    The end of the text is aligned to the edge of the available space.

    Source

    DetectFromContent

    DetectFromContent
    

    Text alignment is inferred from the text content.

    When the text alignment is calculated without taking the flow direction into account this value is treated as TextAlignment::Left.

    Source

    Justify

    Justify
    

    Text is justified within the available space.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.