# RawInputEventArgs

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

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

```rust
struct RawInputEventArgs
```

A raw input event.

Raw input events are sent from the windowing subsystem to the input
manager for processing: this gives an application the opportunity to
pre-process the event. After pre-processing they are consumed by the
relevant input device and turned into standard events.

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

## Members

- [`new`](#function-new)
- [`device`](#function-device)
- [`root`](#function-root)
- [`handled`](#function-handled)
- [`set_handled`](#function-set_handled)
- [`timestamp`](#function-timestamp)
- [`set_timestamp`](#function-set_timestamp)

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

### new

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

Creates raw input event args.

`timestamp` is the time stamp of the input as reported by the
platform; `root` is the root from which the event originates.

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

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

### device

```rust
fn device(self: &Self) -> &Rc<dyn IInputDevice>
```

The associated device.

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

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

### root

```rust
fn root(self: &Self) -> &Rc<dyn IInputRoot>
```

The root from which the event originates.

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

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

### handled

```rust
fn handled(self: &Self) -> bool
```

Whether the event was handled.

If an event is not marked handled after processing, this event will
be returned to the windowing subsystem for further processing.

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

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

### set_handled

```rust
fn set_handled(self: &Self, value: bool)
```

Marks the event as handled or unhandled.

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

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

### timestamp

```rust
fn timestamp(self: &Self) -> u64
```

The timestamp associated with the event.

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

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

### set_timestamp

```rust
fn set_timestamp(self: &Self, value: u64)
```

Sets the timestamp associated with the event.

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

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