FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FlexJustifyContent

    enum · ferroui-controls · v0.5.0

    enum FlexJustifyContent
    

    Describes the main-axis alignment of items inside a FlexPanel line.

    View source

    Members

    FlexStart

    FlexStart = 0
    

    Child items are packed toward the start of the line.

    This is the default value.

    Source

    FlexEnd

    FlexEnd = 1
    

    Child items are packed toward the end of the line.

    Source

    Center

    Center = 2
    

    Child items are packed toward the center of the line.

    If the leftover free-space is negative, the child items will overflow equally in both directions.

    Source

    SpaceBetween

    SpaceBetween = 3
    

    Child items are evenly distributed in the line, with no space on either end.

    If the leftover free-space is negative or there is only a single child item on the line, this value is identical to FlexJustifyContent::FlexStart.

    Source

    SpaceAround

    SpaceAround = 4
    

    Child items are evenly distributed in the line, with half-size spaces on either end.

    If the leftover free-space is negative or there is only a single child item on the line, this value is identical to FlexJustifyContent::Center.

    Source

    SpaceEvenly

    SpaceEvenly = 5
    

    Child items are evenly distributed in the line, with equal-size spaces between each item and on either end.

    Source

    Trait implementations

    Availability

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