FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    XYFocusNavigationStrategy

    enum · ferroui-base · v0.5.0

    enum XYFocusNavigationStrategy
    

    Specifies the disambiguation strategy used for navigating between multiple candidate targets with directional (XY) navigation.

    View source

    Members

    Auto

    Auto = 0
    

    Indicates that navigation strategy is inherited from the element's ancestors. If all ancestors have a value of Auto, the fallback strategy is Projection.

    Source

    Projection

    Projection = 1
    

    Indicates that focus moves to the first element encountered when projecting the edge of the currently focused element in the direction of navigation.

    Source

    NavigationDirectionDistance

    NavigationDirectionDistance = 2
    

    Indicates that focus moves to the element closest to the axis of the navigation direction.

    Source

    RectilinearDistance

    RectilinearDistance = 3
    

    Indicates that focus moves to the closest element based on the shortest 2D distance (Manhattan metric).

    Source

    Trait implementations

    Availability

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