# InputElementProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-inputelementprops/

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

```rust
trait InputElementProps: ElementBuilder
```

The properties and routed events of `InputElement`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4565)

## Members

- [`focusable`](#function-focusable)
- [`allow_focus_on_interaction`](#function-allow_focus_on_interaction)
- [`is_enabled`](#function-is_enabled)
- [`cursor`](#function-cursor)
- [`is_hit_test_visible`](#function-is_hit_test_visible)
- [`is_tab_stop`](#function-is_tab_stop)
- [`tab_index`](#function-tab_index)
- [`on_got_focus`](#function-on_got_focus)
- [`on_getting_focus`](#function-on_getting_focus)
- [`on_lost_focus`](#function-on_lost_focus)
- [`on_losing_focus`](#function-on_losing_focus)
- [`on_key_down`](#function-on_key_down)
- [`on_key_up`](#function-on_key_up)
- [`on_text_input`](#function-on_text_input)
- [`on_text_input_method_client_requested`](#function-on_text_input_method_client_requested)
- [`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_lost`](#function-on_pointer_capture_lost)
- [`on_pointer_wheel_changed`](#function-on_pointer_wheel_changed)
- [`on_context_requested`](#function-on_context_requested)
- [`on_context_canceled`](#function-on_context_canceled)
- [`on_pinch`](#function-on_pinch)
- [`on_pinch_ended`](#function-on_pinch_ended)
- [`on_pull_gesture`](#function-on_pull_gesture)
- [`on_pull_gesture_ended`](#function-on_pull_gesture_ended)
- [`on_swipe_gesture`](#function-on_swipe_gesture)
- [`on_swipe_gesture_ended`](#function-on_swipe_gesture_ended)
- [`on_scroll_gesture`](#function-on_scroll_gesture)
- [`on_scroll_gesture_inertia_starting`](#function-on_scroll_gesture_inertia_starting)
- [`on_scroll_gesture_ended`](#function-on_scroll_gesture_ended)
- [`on_pointer_touch_pad_gesture_magnify`](#function-on_pointer_touch_pad_gesture_magnify)
- [`on_pointer_touch_pad_gesture_rotate`](#function-on_pointer_touch_pad_gesture_rotate)
- [`on_pointer_touch_pad_gesture_swipe`](#function-on_pointer_touch_pad_gesture_swipe)
- [`on_tapped`](#function-on_tapped)
- [`on_right_tapped`](#function-on_right_tapped)
- [`on_holding`](#function-on_holding)
- [`on_double_tapped`](#function-on_double_tapped)

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

### focusable

```rust
fn focusable<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `InputElement::focusable_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4567)

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

### allow_focus_on_interaction

```rust
fn allow_focus_on_interaction<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `InputElement::allow_focus_on_interaction_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4572)

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

### is_enabled

```rust
fn is_enabled<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `InputElement::is_enabled_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4577)

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

### cursor

```rust
fn cursor<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<ferroui_base::input::Cursor>>, M>) -> Self
```

Sets `InputElement::cursor_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4582)

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

### is_hit_test_visible

```rust
fn is_hit_test_visible<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `InputElement::is_hit_test_visible_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4587)

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

### is_tab_stop

```rust
fn is_tab_stop<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `InputElement::is_tab_stop_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4592)

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

### tab_index

```rust
fn tab_index<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
```

Sets `InputElement::tab_index_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4597)

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

### on_got_focus

```rust
fn on_got_focus(self: Self, handler: impl Fn(&ferroui_base::input::FocusChangedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::got_focus_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4602)

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

### on_getting_focus

```rust
fn on_getting_focus(self: Self, handler: impl Fn(&ferroui_base::input::FocusChangingEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::getting_focus_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4607)

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

### on_lost_focus

```rust
fn on_lost_focus(self: Self, handler: impl Fn(&ferroui_base::input::FocusChangedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::lost_focus_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4612)

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

### on_losing_focus

```rust
fn on_losing_focus(self: Self, handler: impl Fn(&ferroui_base::input::FocusChangingEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::losing_focus_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4617)

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

### on_key_down

```rust
fn on_key_down(self: Self, handler: impl Fn(&ferroui_base::input::KeyEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::key_down_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4622)

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

### on_key_up

```rust
fn on_key_up(self: Self, handler: impl Fn(&ferroui_base::input::KeyEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::key_up_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4627)

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

### on_text_input

```rust
fn on_text_input(self: Self, handler: impl Fn(&ferroui_base::input::TextInputEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::text_input_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4632)

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

### on_text_input_method_client_requested

```rust
fn on_text_input_method_client_requested(self: Self, handler: impl Fn(&ferroui_base::input::text_input::TextInputMethodClientRequestedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::text_input_method_client_requested_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4637)

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

### on_pointer_entered

```rust
fn on_pointer_entered(self: Self, handler: impl Fn(&ferroui_base::input::PointerEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pointer_entered_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4642)

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

### on_pointer_exited

```rust
fn on_pointer_exited(self: Self, handler: impl Fn(&ferroui_base::input::PointerEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pointer_exited_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4647)

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

### on_pointer_moved

```rust
fn on_pointer_moved(self: Self, handler: impl Fn(&ferroui_base::input::PointerEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pointer_moved_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4652)

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

### on_pointer_pressed

```rust
fn on_pointer_pressed(self: Self, handler: impl Fn(&ferroui_base::input::PointerPressedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pointer_pressed_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4657)

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

### on_pointer_released

```rust
fn on_pointer_released(self: Self, handler: impl Fn(&ferroui_base::input::PointerReleasedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pointer_released_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4662)

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

### on_pointer_capture_lost

```rust
fn on_pointer_capture_lost(self: Self, handler: impl Fn(&ferroui_base::input::PointerCaptureLostEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pointer_capture_lost_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4667)

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

### on_pointer_wheel_changed

```rust
fn on_pointer_wheel_changed(self: Self, handler: impl Fn(&ferroui_base::input::PointerWheelEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pointer_wheel_changed_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4672)

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

### on_context_requested

```rust
fn on_context_requested(self: Self, handler: impl Fn(&ferroui_base::input::ContextRequestedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::context_requested_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4677)

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

### on_context_canceled

```rust
fn on_context_canceled(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::context_canceled_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4682)

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

### on_pinch

```rust
fn on_pinch(self: Self, handler: impl Fn(&ferroui_base::input::PinchEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pinch_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4687)

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

### on_pinch_ended

```rust
fn on_pinch_ended(self: Self, handler: impl Fn(&ferroui_base::input::PinchEndedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pinch_ended_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4692)

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

### on_pull_gesture

```rust
fn on_pull_gesture(self: Self, handler: impl Fn(&ferroui_base::input::PullGestureEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pull_gesture_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4697)

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

### on_pull_gesture_ended

```rust
fn on_pull_gesture_ended(self: Self, handler: impl Fn(&ferroui_base::input::PullGestureEndedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pull_gesture_ended_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4702)

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

### on_swipe_gesture

```rust
fn on_swipe_gesture(self: Self, handler: impl Fn(&ferroui_base::input::SwipeGestureEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::swipe_gesture_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4707)

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

### on_swipe_gesture_ended

```rust
fn on_swipe_gesture_ended(self: Self, handler: impl Fn(&ferroui_base::input::SwipeGestureEndedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::swipe_gesture_ended_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4712)

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

### on_scroll_gesture

```rust
fn on_scroll_gesture(self: Self, handler: impl Fn(&ferroui_base::input::ScrollGestureEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::scroll_gesture_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4717)

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

### on_scroll_gesture_inertia_starting

```rust
fn on_scroll_gesture_inertia_starting(self: Self, handler: impl Fn(&ferroui_base::input::ScrollGestureInertiaStartingEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::scroll_gesture_inertia_starting_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4722)

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

### on_scroll_gesture_ended

```rust
fn on_scroll_gesture_ended(self: Self, handler: impl Fn(&ferroui_base::input::ScrollGestureEndedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::scroll_gesture_ended_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4727)

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

### on_pointer_touch_pad_gesture_magnify

```rust
fn on_pointer_touch_pad_gesture_magnify(self: Self, handler: impl Fn(&ferroui_base::input::PointerDeltaEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pointer_touch_pad_gesture_magnify_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4732)

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

### on_pointer_touch_pad_gesture_rotate

```rust
fn on_pointer_touch_pad_gesture_rotate(self: Self, handler: impl Fn(&ferroui_base::input::PointerDeltaEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pointer_touch_pad_gesture_rotate_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4737)

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

### on_pointer_touch_pad_gesture_swipe

```rust
fn on_pointer_touch_pad_gesture_swipe(self: Self, handler: impl Fn(&ferroui_base::input::PointerDeltaEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::pointer_touch_pad_gesture_swipe_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4742)

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

### on_tapped

```rust
fn on_tapped(self: Self, handler: impl Fn(&ferroui_base::input::TappedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::tapped_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4747)

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

### on_right_tapped

```rust
fn on_right_tapped(self: Self, handler: impl Fn(&ferroui_base::input::TappedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::right_tapped_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4752)

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

### on_holding

```rust
fn on_holding(self: Self, handler: impl Fn(&ferroui_base::input::HoldingRoutedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::holding_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4757)

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

### on_double_tapped

```rust
fn on_double_tapped(self: Self, handler: impl Fn(&ferroui_base::input::TappedEventArgs) -> () + 'static) -> Self
```

Handles `InputElement::double_tapped_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4762)

## Trait implementations

- [`InputElementProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-inputelementprops/)

## Availability

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