# XYFocusHelpers

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

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

```rust
struct XYFocusHelpers
```



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

## Members

- [`is_allowed_xy_navigation_mode`](#function-is_allowed_xy_navigation_mode)
- [`find_xy_search_root`](#function-find_xy_search_root)

<a id="function-is_allowed_xy_navigation_mode"></a>

### is_allowed_xy_navigation_mode

```rust
fn is_allowed_xy_navigation_mode(visual: &InputElement, key_device_type: Option<KeyDeviceType>) -> bool
```



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

<a id="function-find_xy_search_root"></a>

### find_xy_search_root

```rust
fn find_xy_search_root(visual: &Ref<InputElement>, key_device_type: Option<KeyDeviceType>) -> Ref<InputElement>
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
