# RevealFocus

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/media/struct-revealfocus/

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

```rust
struct RevealFocus
```

Reveal focus: the focus visual kind of the application, and the glow
it shows around the element keyboard focus moves to.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_focus.rs#L175)

## Members

- [`focus_visual_kind`](#function-focus_visual_kind)
- [`set_focus_visual_kind`](#function-set_focus_visual_kind)
- [`focused_element`](#function-focused_element)
- [`is_pressed`](#function-is_pressed)
- [`glow_host`](#function-glow_host)

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

### focus_visual_kind

```rust
fn focus_visual_kind() -> FocusVisualKind
```

`Application.FocusVisualKind`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_focus.rs#L179)

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

### set_focus_visual_kind

```rust
fn set_focus_visual_kind(kind: FocusVisualKind)
```

Sets `Application.FocusVisualKind`; a glow that is shown goes when
the kind is no longer `Reveal`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_focus.rs#L185)

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

### focused_element

```rust
fn focused_element() -> Option<Ref<Visual>>
```

The element the glow is shown around, if one is.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_focus.rs#L193)

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

### is_pressed

```rust
fn is_pressed() -> bool
```

Whether the press light of the glow is on.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_focus.rs#L198)

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

### glow_host

```rust
fn glow_host() -> Option<Ref<Border>>
```

The host of the glow in the adorner layer, if a glow is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/reveal_focus.rs#L203)

## Trait implementations

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

## Availability

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