# PointerPointProperties

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

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

```rust
struct PointerPointProperties
```

Provides extended properties for a pointer point.

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

## Members

- [`contact_rect`](#struct_field-contact_rect)
- [`is_left_button_pressed`](#struct_field-is_left_button_pressed)
- [`is_middle_button_pressed`](#struct_field-is_middle_button_pressed)
- [`is_right_button_pressed`](#struct_field-is_right_button_pressed)
- [`is_x_button_1_pressed`](#struct_field-is_x_button_1_pressed)
- [`is_x_button_2_pressed`](#struct_field-is_x_button_2_pressed)
- [`is_barrel_button_pressed`](#struct_field-is_barrel_button_pressed)
- [`is_eraser`](#struct_field-is_eraser)
- [`is_inverted`](#struct_field-is_inverted)
- [`twist`](#struct_field-twist)
- [`pressure`](#struct_field-pressure)
- [`x_tilt`](#struct_field-x_tilt)
- [`y_tilt`](#struct_field-y_tilt)
- [`pointer_update_kind`](#struct_field-pointer_update_kind)
- [`NONE`](#assoc_const-none)
- [`new`](#function-new)
- [`with_pen_state`](#function-with_pen_state)
- [`with_pen_state_and_contact_rect`](#function-with_pen_state_and_contact_rect)
- [`from_raw_point`](#function-from_raw_point)
- [`based_on`](#function-based_on)

<a id="struct_field-contact_rect"></a>

### contact_rect

```rust
contact_rect: crate::Rect
```

The bounding rectangle of the contact area (typically from touch
input).

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

<a id="struct_field-is_left_button_pressed"></a>

### is_left_button_pressed

```rust
is_left_button_pressed: bool
```

Whether the pointer input was triggered by the primary action mode of
an input device.

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

<a id="struct_field-is_middle_button_pressed"></a>

### is_middle_button_pressed

```rust
is_middle_button_pressed: bool
```

Whether the pointer input was triggered by the tertiary action mode
of an input device.

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

<a id="struct_field-is_right_button_pressed"></a>

### is_right_button_pressed

```rust
is_right_button_pressed: bool
```

Whether the pointer input was triggered by the secondary action mode
(if supported) of an input device.

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

<a id="struct_field-is_x_button_1_pressed"></a>

### is_x_button_1_pressed

```rust
is_x_button_1_pressed: bool
```

Whether the pointer input was triggered by the first extended mouse
button (XButton1).

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

<a id="struct_field-is_x_button_2_pressed"></a>

### is_x_button_2_pressed

```rust
is_x_button_2_pressed: bool
```

Whether the pointer input was triggered by the second extended mouse
button (XButton2).

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

<a id="struct_field-is_barrel_button_pressed"></a>

### is_barrel_button_pressed

```rust
is_barrel_button_pressed: bool
```

Whether the barrel button of the pen/stylus device is pressed.

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

<a id="struct_field-is_eraser"></a>

### is_eraser

```rust
is_eraser: bool
```

Whether the input is from a pen eraser.

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

<a id="struct_field-is_inverted"></a>

### is_inverted

```rust
is_inverted: bool
```

Whether the digitizer input is from an inverted pen.

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

<a id="struct_field-twist"></a>

### twist

```rust
twist: f32
```

The clockwise rotation in degrees of a pen device around its own
major axis (such as when the user spins the pen in their fingers).
A value between 0.0 and 359.0 in degrees of rotation; the default
value is 0.0.

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

<a id="struct_field-pressure"></a>

### pressure

```rust
pressure: f32
```

A value that indicates the force that the pointer device (typically
a pen/stylus) exerts on the surface of the digitizer. A value from 0
to 1.0; the default value is 0.5.

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

<a id="struct_field-x_tilt"></a>

### x_tilt

```rust
x_tilt: f32
```

The plane angle between the Y-Z plane and the plane that contains
the Y axis and the axis of the input device (typically a
pen/stylus). The value is 0.0 when the finger or pen is
perpendicular to the digitizer surface, between 0.0 and 90.0 when
tilted to the right of perpendicular, and between 0.0 and -90.0 when
tilted to the left of perpendicular. The default value is 0.0.

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

<a id="struct_field-y_tilt"></a>

### y_tilt

```rust
y_tilt: f32
```

The plane angle between the X-Z plane and the plane that contains
the X axis and the axis of the input device (typically a
pen/stylus). The value is 0.0 when the finger or pen is
perpendicular to the digitizer surface, between 0.0 and 90.0 when
tilted towards the user, and between 0.0 and -90.0 when tilted away
from the user. The default value is 0.0.

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

<a id="struct_field-pointer_update_kind"></a>

### pointer_update_kind

```rust
pointer_update_kind: PointerUpdateKind
```

The kind of pointer state change.

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

<a id="assoc_const-none"></a>

### NONE

```rust
const NONE: PointerPointProperties
```

The default properties: nothing pressed.

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

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

### new

```rust
fn new(modifiers: RawInputModifiers, kind: PointerUpdateKind) -> Self
```

Creates properties from raw input modifiers and the kind of state
change.

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

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

### with_pen_state

```rust
fn with_pen_state(modifiers: RawInputModifiers, kind: PointerUpdateKind, twist: f32, pressure: f32, x_tilt: f32, y_tilt: f32) -> Self
```

Creates properties with pen state.

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

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

### with_pen_state_and_contact_rect

```rust
fn with_pen_state_and_contact_rect(modifiers: RawInputModifiers, kind: PointerUpdateKind, twist: f32, pressure: f32, x_tilt: f32, y_tilt: f32, contact_rect: Rect) -> Self
```

Creates properties with pen state and a contact rectangle.

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

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

### from_raw_point

```rust
fn from_raw_point(modifiers: RawInputModifiers, kind: PointerUpdateKind, raw_point: RawPointerPoint) -> Self
```

Creates properties from a raw pointer point.

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

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

### based_on

```rust
fn based_on(based_on: PointerPointProperties, raw_point: RawPointerPoint) -> Self
```

Creates the properties of an intermediate point: the button state of
`based_on` with the pen state of a raw pointer point.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Default`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
