# InputElementImpl

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

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

```rust
trait InputElementImpl: InteractiveImpl + $crate::Upcast<InputElement>
```

The overridable members introduced by the class.

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

## Members

- [`is_enabled_core`](#function-is_enabled_core)
- [`is_focus_scope`](#function-is_focus_scope)
- [`on_getting_focus`](#function-on_getting_focus)
- [`on_losing_focus`](#function-on_losing_focus)
- [`on_got_focus`](#function-on_got_focus)
- [`on_lost_focus`](#function-on_lost_focus)
- [`on_key_down`](#function-on_key_down)
- [`on_key_up`](#function-on_key_up)
- [`on_text_input`](#function-on_text_input)
- [`on_pointer_entered`](#function-on_pointer_entered)
- [`on_pointer_exited`](#function-on_pointer_exited)
- [`on_pointer_moved`](#function-on_pointer_moved)
- [`on_pointer_pressed`](#function-on_pointer_pressed)
- [`on_pointer_released`](#function-on_pointer_released)
- [`on_pointer_capture_changing`](#function-on_pointer_capture_changing)
- [`on_pointer_capture_lost`](#function-on_pointer_capture_lost)
- [`on_pointer_wheel_changed`](#function-on_pointer_wheel_changed)
- [`on_tapped`](#function-on_tapped)
- [`on_right_tapped`](#function-on_right_tapped)
- [`on_double_tapped`](#function-on_double_tapped)
- [`on_holding`](#function-on_holding)
- [`on_access_key`](#function-on_access_key)
- [`get_next_tab_stop_override`](#function-get_next_tab_stop_override)
- [`get_previous_tab_stop_override`](#function-get_previous_tab_stop_override)
- [`get_first_focusable_element_override`](#function-get_first_focusable_element_override)
- [`get_last_focusable_element_override`](#function-get_last_focusable_element_override)
- [`process_tab_stop_override`](#function-process_tab_stop_override)
- [`process_candidate_tab_stop_override`](#function-process_candidate_tab_stop_override)
- [`children_in_tab_focus_order`](#function-children_in_tab_focus_order)
- [`as_custom_keyboard_navigation`](#function-as_custom_keyboard_navigation)
- [`as_scrollable`](#function-as_scrollable)
- [`as_hosted_visual_tree_root`](#function-as_hosted_visual_tree_root)

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

### is_enabled_core

```rust
fn is_enabled_core(this: &Self) -> bool
```

Whether the control is enabled, as far as the control itself is
concerned. The default is the value of `is_enabled`; controls
with additional conditions (e.g. a command that cannot execute)
override this.

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

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

### is_focus_scope

```rust
fn is_focus_scope(this: &Self) -> bool
```

Whether the element is a focus scope: an element that remembers
which of its descendants was focused last.

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

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

### on_getting_focus

```rust
fn on_getting_focus(this: &Self, e: &FocusChangingEventArgs)
```

Called when the control or one of its child elements is about to
get focus.

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

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

### on_losing_focus

```rust
fn on_losing_focus(this: &Self, e: &FocusChangingEventArgs)
```

Called when the control or one of its child elements is about to
lose focus.

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

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

### on_got_focus

```rust
fn on_got_focus(this: &Self, e: &FocusChangedEventArgs)
```

Called when the control or one of its child elements gets focus.

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

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

### on_lost_focus

```rust
fn on_lost_focus(this: &Self, e: &FocusChangedEventArgs)
```

Called when the control or one of its child elements loses
focus.

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

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

### on_key_down

```rust
fn on_key_down(this: &Self, e: &KeyEventArgs)
```

Called before the key down event occurs.

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

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

### on_key_up

```rust
fn on_key_up(this: &Self, e: &KeyEventArgs)
```

Called before the key up event occurs.

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

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

### on_text_input

```rust
fn on_text_input(this: &Self, e: &TextInputEventArgs)
```

Called before the text input event occurs.

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

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

### on_pointer_entered

```rust
fn on_pointer_entered(this: &Self, e: &PointerEventArgs)
```

Called before the pointer entered event occurs.

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

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

### on_pointer_exited

```rust
fn on_pointer_exited(this: &Self, e: &PointerEventArgs)
```

Called before the pointer exited event occurs.

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

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

### on_pointer_moved

```rust
fn on_pointer_moved(this: &Self, e: &PointerEventArgs)
```

Called before the pointer moved event occurs.

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

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

### on_pointer_pressed

```rust
fn on_pointer_pressed(this: &Self, e: &PointerPressedEventArgs)
```

Called before the pointer pressed event occurs.

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

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

### on_pointer_released

```rust
fn on_pointer_released(this: &Self, e: &PointerReleasedEventArgs)
```

Called before the pointer released event occurs.

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

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

### on_pointer_capture_changing

```rust
fn on_pointer_capture_changing(this: &Self, e: &PointerCaptureChangingEventArgs)
```

Called when the capture of a pointer is about to change on the
control or one of its descendants.

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

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

### on_pointer_capture_lost

```rust
fn on_pointer_capture_lost(this: &Self, e: &PointerCaptureLostEventArgs)
```

Called before the pointer capture lost event occurs.

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

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

### on_pointer_wheel_changed

```rust
fn on_pointer_wheel_changed(this: &Self, e: &PointerWheelEventArgs)
```

Called before the pointer wheel changed event occurs.

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

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

### on_tapped

```rust
fn on_tapped(this: &Self, e: &TappedEventArgs)
```

Called when a tap gesture occurs on the control.

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

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

### on_right_tapped

```rust
fn on_right_tapped(this: &Self, e: &TappedEventArgs)
```

Called when a right tap gesture occurs on the control.

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

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

### on_double_tapped

```rust
fn on_double_tapped(this: &Self, e: &TappedEventArgs)
```

Called when a double-tap gesture occurs on the control.

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

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

### on_holding

```rust
fn on_holding(this: &Self, e: &HoldingRoutedEventArgs)
```

Called when a hold gesture occurs on the control.

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

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

### on_access_key

```rust
fn on_access_key(this: &Self, e: &dyn IRoutedEventArgs)
```

Called when the access key of the control is pressed. The
default focuses the control.

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

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

### get_next_tab_stop_override

```rust
fn get_next_tab_stop_override(this: &Self) -> Option<Ref<InputElement>>
```

Called when focus is moving forward out of this element: lets it
name the element that should receive focus next.

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

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

### get_previous_tab_stop_override

```rust
fn get_previous_tab_stop_override(this: &Self) -> Option<Ref<InputElement>>
```

Called when focus is moving backward out of this element: lets
it name the element that should receive focus next.

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

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

### get_first_focusable_element_override

```rust
fn get_first_focusable_element_override(this: &Self) -> Option<Ref<InputElement>>
```

Lets the element name the first focusable element within it.

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

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

### get_last_focusable_element_override

```rust
fn get_last_focusable_element_override(this: &Self) -> Option<Ref<InputElement>>
```

Lets the element name the last focusable element within it.

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

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

### process_tab_stop_override

```rust
fn process_tab_stop_override(this: &Self, focused_element: Option<&Ref<InputElement>>, candidate_tab_stop_element: Option<&Ref<InputElement>>, is_reverse: bool, did_cycle_focus_at_root_visual: bool, new_tab_stop: &mut Option<Ref<InputElement>>) -> bool
```

Lets the element (an ancestor of the focused element) override
the tab stop chosen by tab navigation. Returns true when the tab
stop is overridden; the override is written to `new_tab_stop`.

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

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

### process_candidate_tab_stop_override

```rust
fn process_candidate_tab_stop_override(this: &Self, focused_element: Option<&Ref<InputElement>>, candidate_tab_stop_element: Option<&Ref<InputElement>>, overriden_candidate_tab_stop_element: Option<&Ref<InputElement>>, is_reverse: bool, new_tab_stop: &mut Option<Ref<InputElement>>) -> bool
```

Lets the element (an ancestor of the candidate tab stop)
override the tab stop chosen by tab navigation. Returns true
when the tab stop is overridden; the override is written to
`new_tab_stop`.

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

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

### children_in_tab_focus_order

```rust
fn children_in_tab_focus_order(this: &Self) -> Option<Vec<Ref<InputElement>>>
```

The children of the element that take part in tab navigation, in
their tab order (WinUI `UIElement.GetChildrenInTabFocusOrder`).
`None`, the default, takes the input elements among the visual
children, in their order. An element that keeps children it does
not show (the recycled elements of a virtualizing panel), or whose
visual order is not the order of its items, returns its children
in tab order here. Upstream has no such member (DEVIATIONS.md,
Input).

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

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

### as_custom_keyboard_navigation

```rust
fn as_custom_keyboard_navigation(this: &Self) -> Option<&dyn ICustomKeyboardNavigation>
```

The element as a custom keyboard navigation handler, if it is
one.

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

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

### as_scrollable

```rust
fn as_scrollable(this: &Self) -> Option<&dyn IScrollable>
```

The element as a scrollable, if it is one.

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

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

### as_hosted_visual_tree_root

```rust
fn as_hosted_visual_tree_root(this: &Self) -> Option<&dyn IHostedVisualTreeRoot>
```

The element as the root of a hosted visual tree (such as a
popup root), if it is one.

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

## Trait implementations

- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)

## Availability

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