# PointerPressedEventArgs

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

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

```rust
struct PointerPressedEventArgs
```

Provides data for the pointer pressed event.

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

## Members

- [`new`](#function-new)
- [`with_platform_input_event_cookie`](#function-with_platform_input_event_cookie)
- [`click_count`](#function-click_count)

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

### new

```rust
fn new(source: impl Into<Nullable<FerroObject>>, pointer: Rc<dyn IPointer>, root_visual: &Visual, root_visual_position: Point, timestamp: u64, properties: PointerPointProperties, modifiers: KeyModifiers, click_count: i32) -> Self
```

Creates pointer pressed event args.

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

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

### with_platform_input_event_cookie

```rust
fn with_platform_input_event_cookie(self: Self, cookie: Option<Rc<dyn Any>>) -> Self
```

Adds the platform's cookie for the input event.

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

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

### click_count

```rust
fn click_count(self: &Self) -> i32
```

The number of clicks: 1 for a single click, 2 for a double click and
so on.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)
- [`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/).
