# RawPointerEventArgs

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

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

```rust
struct RawPointerEventArgs
```

A raw mouse (or other pointer) event.

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

## Members

- [`new`](#function-new)
- [`with_point`](#function-with_point)
- [`raw_pointer_id`](#function-raw_pointer_id)
- [`set_raw_pointer_id`](#function-set_raw_pointer_id)
- [`point`](#function-point)
- [`set_point`](#function-set_point)
- [`position`](#function-position)
- [`set_position`](#function-set_position)
- [`type_`](#function-type_)
- [`set_type`](#function-set_type)
- [`input_modifiers`](#function-input_modifiers)
- [`set_input_modifiers`](#function-set_input_modifiers)
- [`intermediate_points`](#function-intermediate_points)
- [`set_intermediate_points`](#function-set_intermediate_points)
- [`platform_input_event_cookie`](#function-platform_input_event_cookie)
- [`set_platform_input_event_cookie`](#function-set_platform_input_event_cookie)
- [`input_hit_test_result`](#function-input_hit_test_result)
- [`set_input_hit_test_result`](#function-set_input_hit_test_result)

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

### new

```rust
fn new(device: Rc<dyn IInputDevice>, timestamp: u64, root: Rc<dyn IInputRoot>, type_: RawPointerEventType, position: Point, input_modifiers: RawInputModifiers) -> Self
```

Creates raw pointer event args for a position in client coordinates.

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

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

### with_point

```rust
fn with_point(device: Rc<dyn IInputDevice>, timestamp: u64, root: Rc<dyn IInputRoot>, type_: RawPointerEventType, point: RawPointerPoint, input_modifiers: RawInputModifiers) -> Self
```

Creates raw pointer event args for a raw pointer point.

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

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

### raw_pointer_id

```rust
fn raw_pointer_id(self: &Self) -> i64
```

The raw pointer identifier.

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

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

### set_raw_pointer_id

```rust
fn set_raw_pointer_id(self: &Self, value: i64)
```



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

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

### point

```rust
fn point(self: &Self) -> RawPointerPoint
```

The pointer properties and position, in client DIPs.

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

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

### set_point

```rust
fn set_point(self: &Self, value: RawPointerPoint)
```



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

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

### position

```rust
fn position(self: &Self) -> Point
```

The mouse position, in client DIPs.

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

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

### set_position

```rust
fn set_position(self: &Self, value: Point)
```



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

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

### type_

```rust
fn type_(self: &Self) -> RawPointerEventType
```

The type of the event.

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

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

### set_type

```rust
fn set_type(self: &Self, value: RawPointerEventType)
```



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

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

### input_modifiers

```rust
fn input_modifiers(self: &Self) -> RawInputModifiers
```

The input modifiers.

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

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

### set_input_modifiers

```rust
fn set_input_modifiers(self: &Self, value: RawInputModifiers)
```



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

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

### intermediate_points

```rust
fn intermediate_points(self: &Self) -> Option<IntermediatePoints>
```

Points that were traversed by a pointer since the previous relevant
event, only valid for Move and TouchUpdate.

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

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

### set_intermediate_points

```rust
fn set_intermediate_points(self: &Self, value: Option<IntermediatePoints>)
```



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

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

### platform_input_event_cookie

```rust
fn platform_input_event_cookie(self: &Self) -> Option<Rc<dyn Any>>
```

The platform's opaque cookie for the input event.

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

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

### set_platform_input_event_cookie

```rust
fn set_platform_input_event_cookie(self: &Self, value: Option<Rc<dyn Any>>)
```



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

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

### input_hit_test_result

```rust
fn input_hit_test_result(self: &Self) -> (Option<Ref<InputElement>>, Option<Ref<InputElement>>)
```

The result of input hit testing the event: the element under the
pointer and its first enabled ancestor. Set by the presentation
source before the event is processed.

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

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

### set_input_hit_test_result

```rust
fn set_input_hit_test_result(self: &Self, element: Option<Ref<InputElement>>, first_enabled_ancestor: Option<Ref<InputElement>>)
```



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

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