pub struct FindNextElementOptions {
pub focused_element: Option<Ref<InputElement>>,
pub search_root: Option<Ref<InputElement>>,
pub exclusion_rect: Rect,
pub focus_hint_rectangle: Option<Rect>,
pub navigation_strategy_override: Option<XYFocusNavigationStrategy>,
pub ignore_occlusivity: bool,
}Expand description
Provides options to customize the behavior when identifying the next element to focus during a navigation operation.
Fields§
§focused_element: Option<Ref<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: Option<Ref<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: RectThe rectangular region within the visual hierarchy that will be excluded from consideration during focus navigation.
focus_hint_rectangle: Option<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.
The navigation strategy to apply when navigating focus between elements; overrides the default strategy when set.
ignore_occlusivity: boolWhether 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§
Source§impl Clone for FindNextElementOptions
impl Clone for FindNextElementOptions
Auto Trait Implementations§
impl !RefUnwindSafe for FindNextElementOptions
impl !Send for FindNextElementOptions
impl !Sync for FindNextElementOptions
impl !UnwindSafe for FindNextElementOptions
impl Freeze for FindNextElementOptions
impl Unpin for FindNextElementOptions
impl UnsafeUnpin for FindNextElementOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more