Class

# PointerEvent

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Information about the pointer (finger, mouse or pen) at the moment a pointer-related event occurs on a canvas control.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                              | Type                             | Read-Only | Shared |
|-----------------------------------|----------------------------------|-----------|--------|
| `Position<pointerevent.position>` | `Point</api/graphics/point>`     | ✓         |        |
| `Pressure<pointerevent.pressure>` | `Double</api/data_types/double>` | ✓         |        |
| `Size<pointerevent.size>`         | `Double</api/data_types/double>` | ✓         |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                          | Parameters | Returns                                     | Shared |
|-------------------------------|------------|---------------------------------------------|--------|
| `Handle<pointerevent.handle>` |            | `Ptr</api/data_types/additional_types/ptr>` |        |

## Property descriptions

<div id="pointerevent.position">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PointerEvent.Position

**Position** As `Point</api/graphics/point>`

> The location of the event in relation to the area where the event took place with the upper-left corner of the area being at 0, 0.
>
> This property is read-only.

<div id="pointerevent.pressure">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PointerEvent.Pressure

**Pressure** As `Double</api/data_types/double>`

> The amount of pressure exerted on surface by the pointer (usually a stylus such as the Apple Pencil) at the time of the event.
>
> This property is read-only.
>
> A value of 1.0 is an average amount of pressure.

<div id="pointerevent.size">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PointerEvent.Size

**Size** As `Double</api/data_types/double>`

> The radius (in points) of the pointer at the time the event took place.
>
> This property is read-only.

## Method descriptions

<div id="pointerevent.handle">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

PointerEvent.Handle

**Handle** As `Ptr</api/data_types/additional_types/ptr>`

> Returns a `Ptr</api/data_types/additional_types/ptr>` to the event for use with declares.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This is supported for iOS only.
>
> </div>

## Compatibility

|                       |        |
|-----------------------|--------|
| **Project Types**     | Mobile |
| **Operating Systems** | All    |

<div class="seealso">

`Object</api/data_types/additional_types/object>` parent class; `MobileCanvas.PointerDown<mobilecanvas.pointerdown>`, `MobileCanvas.PointerDrag<mobilecanvas.pointerdrag>` and `MobileCanvas.PointerUp<mobilecanvas.pointerup>` events.

</div>
