# InputMethod

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

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

```rust
struct InputMethod
```

Defines the attached property and the routed event that connect an
input element to the input method of the platform.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`is_input_method_enabled_property`](#function-is_input_method_enabled_property)
- [`set_is_input_method_enabled`](#function-set_is_input_method_enabled)
- [`get_is_input_method_enabled`](#function-get_is_input_method_enabled)
- [`text_input_method_client_requery_requested_event`](#function-text_input_method_client_requery_requested_event)
- [`add_text_input_method_client_requery_requested_handler`](#function-add_text_input_method_client_requery_requested_handler)
- [`remove_text_input_method_client_requery_requested_handler`](#function-remove_text_input_method_client_requery_requested_handler)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this type.

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

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

### is_input_method_enabled_property

```rust
fn is_input_method_enabled_property() -> &'static AttachedProperty<bool>
```

A dependency property that enables alternative text inputs.

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

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

### set_is_input_method_enabled

```rust
fn set_is_input_method_enabled(target: &InputElement, value: bool)
```

Setter for the `IsInputMethodEnabled` attached property.

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

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

### get_is_input_method_enabled

```rust
fn get_is_input_method_enabled(target: &InputElement) -> bool
```

Getter for the `IsInputMethodEnabled` attached property.

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

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

### text_input_method_client_requery_requested_event

```rust
fn text_input_method_client_requery_requested_event() -> &'static RoutedEvent<TextInputMethodClientRequeryRequestedEventArgs>
```

Defines the `TextInputMethodClientRequeryRequested` event: raise
it on an element to have the input system query the focused
element for its text input method client again.

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

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

### add_text_input_method_client_requery_requested_handler

```rust
fn add_text_input_method_client_requery_requested_handler(element: &Interactive, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Adds a handler for the `TextInputMethodClientRequeryRequested`
attached event.

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

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

### remove_text_input_method_client_requery_requested_handler

```rust
fn remove_text_input_method_client_requery_requested_handler(element: &Interactive, handler: RoutedEventHandlerToken)
```

Removes a handler for the `TextInputMethodClientRequeryRequested`
attached event.

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

## 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`
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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