FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FlexAlignItems

    enum · ferroui-controls · v0.5.0

    enum FlexAlignItems
    

    Defines the alignment mode along the cross-axis of FlexPanel child items.

    View source

    Members

    FlexStart

    FlexStart = 0
    

    Items are aligned to the cross-axis start margin edge of the line.

    Source

    FlexEnd

    FlexEnd = 1
    

    Items are aligned to the cross-axis end margin edge of the line.

    Source

    Center

    Center = 2
    

    Items are aligned to the cross-axis center of the line.

    If the cross size of the line is less than that of the child item, it will overflow equally in both directions.

    Source

    Stretch

    Stretch = 3
    

    Items are stretched to fill the cross size of the line.

    This is the default value of FlexPanel::align_items.

    Source

    Trait implementations

    Availability

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