# FindNextElementOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/struct-findnextelementoptions/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct FindNextElementOptions
```

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

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/find_next_element_options.rs#L8)

## Members

- [`focused_element`](#struct_field-focused_element)
- [`search_root`](#struct_field-search_root)
- [`exclusion_rect`](#struct_field-exclusion_rect)
- [`focus_hint_rectangle`](#struct_field-focus_hint_rectangle)
- [`navigation_strategy_override`](#struct_field-navigation_strategy_override)
- [`ignore_occlusivity`](#struct_field-ignore_occlusivity)

<a id="struct_field-focused_element"></a>

### focused_element

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/find_next_element_options.rs#L13)

<a id="struct_field-search_root"></a>

### search_root

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/find_next_element_options.rs#L22)

<a id="struct_field-exclusion_rect"></a>

### exclusion_rect

```rust
exclusion_rect: crate::Rect
```

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/find_next_element_options.rs#L26)

<a id="struct_field-focus_hint_rectangle"></a>

### focus_hint_rectangle

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/find_next_element_options.rs#L31)

<a id="struct_field-navigation_strategy_override"></a>

### navigation_strategy_override

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

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/find_next_element_options.rs#L35)

<a id="struct_field-ignore_occlusivity"></a>

### ignore_occlusivity

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/find_next_element_options.rs#L40)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-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](/docs/0.5.0/api/).
