FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PlacementMode

    enum · ferroui-controls · v0.5.0

    enum PlacementMode
    

    Defines the placement for a popup control.

    View source

    Members

    Pointer

    Pointer = 0
    

    The popup is placed at the pointer position.

    Source

    Bottom

    Bottom = 1
    

    Preferred location is below the target element.

    Source

    Right

    Right = 2
    

    Preferred location is to the right of the target element.

    Source

    Left

    Left = 3
    

    Preferred location is to the left of the target element.

    Source

    Top

    Top = 4
    

    Preferred location is above the target element.

    Source

    Center

    Center = 5
    

    Preferred location is centered over the target element.

    Source

    AnchorAndGravity

    AnchorAndGravity = 6
    

    The popup is placed according to the popup's placement anchor and placement gravity rules.

    Source

    TopEdgeAlignedLeft

    TopEdgeAlignedLeft = 7
    

    Preferred location is above the target element, with the left edge of the popup aligned with the left edge of the target element.

    Source

    TopEdgeAlignedRight

    TopEdgeAlignedRight = 8
    

    Preferred location is above the target element, with the right edge of popup aligned with right edge of the target element.

    Source

    BottomEdgeAlignedLeft

    BottomEdgeAlignedLeft = 9
    

    Preferred location is below the target element, with the left edge of popup aligned with left edge of the target element.

    Source

    BottomEdgeAlignedRight

    BottomEdgeAlignedRight = 10
    

    Preferred location is below the target element, with the right edge of popup aligned with right edge of the target element.

    Source

    LeftEdgeAlignedTop

    LeftEdgeAlignedTop = 11
    

    Preferred location is to the left of the target element, with the top edge of popup aligned with top edge of the target element.

    Source

    LeftEdgeAlignedBottom

    LeftEdgeAlignedBottom = 12
    

    Preferred location is to the left of the target element, with the bottom edge of popup aligned with bottom edge of the target element.

    Source

    RightEdgeAlignedTop

    RightEdgeAlignedTop = 13
    

    Preferred location is to the right of the target element, with the top edge of popup aligned with top edge of the target element.

    Source

    RightEdgeAlignedBottom

    RightEdgeAlignedBottom = 14
    

    Preferred location is to the right of the target element, with the bottom edge of popup aligned with bottom edge of the target element.

    Source

    Custom

    Custom = 15
    

    A position and repositioning behavior that is defined by the popup's custom popup placement callback.

    Source

    Trait implementations

    Availability

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