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.
Members
focused_elementsearch_rootexclusion_rectfocus_hint_rectanglenavigation_strategy_overrideignore_occlusivity
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.
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.
exclusion_rect
exclusion_rect: crate::Rect
The rectangular region within the visual hierarchy that will be excluded from consideration during focus navigation.
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.
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.