# IRawInputEventArgs

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

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

```rust
trait IRawInputEventArgs: Any
```

Implemented by every raw input event args type.

Raw event args form a small class hierarchy rooted at
[`RawInputEventArgs`](/docs/0.5.0/api/ferroui-base/input/raw/struct-rawinputeventargs/); a derived type embeds its base as its `base`
field and derefs to it. This trait gives the runtime view of that
hierarchy.

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

## Members

- [`as_raw_input_event_args`](#function-as_raw_input_event_args)
- [`query_args`](#function-query_args)

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

### as_raw_input_event_args

```rust
fn as_raw_input_event_args(self: &Self) -> &RawInputEventArgs
```

The base raw input event args.

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

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

### query_args

```rust
fn query_args(self: &Self, type_id: TypeId) -> Option<&dyn Any>
```

Returns the args viewed as the args type identified by `type_id`, if
the args are of that type or of a type derived from it.

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

## Trait implementations

- [`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/).
