# RawTextInputEventArgs

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

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

```rust
struct RawTextInputEventArgs
```

A raw text input event.

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

## Members

- [`new`](#function-new)
- [`input_method_commit`](#function-input_method_commit)
- [`text`](#function-text)

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

### new

```rust
fn new(device: Rc<dyn IInputDevice>, timestamp: u64, root: Rc<dyn IInputRoot>, text: impl Into<String>) -> Self
```

Creates raw text input event args. `device` is the keyboard device
the text comes from.

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

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

### input_method_commit

```rust
fn input_method_commit(self: &Self) -> Option<&Rc<TextInputMethodCommit>>
```

The captured owner and acceptance of a managed platform commit.

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

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

### text

```rust
fn text(self: &Self) -> &str
```

The text that was input.

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

## 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>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`IRawInputEventArgs`](/docs/0.5.0/api/ferroui-base/input/raw/trait-irawinputeventargs/)

## Availability

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