# IFocusScope

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/trait-ifocusscope/

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

```rust
trait IFocusScope
```

Marks an input element as a focus scope: an element that remembers which
of its descendants was focused last.

Whether an element is a focus scope is answered at runtime by the
`is_focus_scope` virtual member of `InputElement`; a class that is a
focus scope overrides it to return true and implements this trait for
documentation.

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

## Availability

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