FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FindNextElementOptions

    struct · ferroui-base · v0.5.0

    struct FindNextElementOptions
    

    Provides options to customize the behavior when identifying the next element to focus during a navigation operation.

    View source

    Members

    focused_element

    focused_element: Option<crate::Ref<super::InputElement>>
    

    The element that will be treated as the starting point of the search for the next focusable element. This does not need to be the element that currently has focus. If None, the focus manager's current focus is used.

    Source

    search_root

    search_root: Option<crate::Ref<super::InputElement>>
    

    The root within which the search for the next focusable element will be conducted.

    This property defines the boundary for focus navigation operations. It determines the root element in the visual tree under which the focusable item search is performed. If not specified, the search defaults to the current scope.

    Source

    exclusion_rect

    exclusion_rect: crate::Rect
    

    The rectangular region within the visual hierarchy that will be excluded from consideration during focus navigation.

    Source

    focus_hint_rectangle

    focus_hint_rectangle: Option<crate::Rect>
    

    A rectangular region that acts as a hint for focus navigation: a preferred or prioritized target when navigating focus. Can be None if no specific hint region is provided.

    Source

    navigation_strategy_override

    navigation_strategy_override: Option<super::navigation::XYFocusNavigationStrategy>
    

    The navigation strategy to apply when navigating focus between elements; overrides the default strategy when set.

    Source

    ignore_occlusivity

    ignore_occlusivity: bool
    

    Whether occlusivity (overlapping of elements) should be ignored during focus navigation. When true, the navigation logic disregards obstructions that may block a potential focus target.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Default

    Availability

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