Table of Contents

Struct RawPointerPoint

Namespace
Avalonia.Input.Raw
Assembly
Avalonia.Base.dll
[PrivateApi]
public struct RawPointerPoint : IEquatable<RawPointerPoint>
Implements
Inherited Members

Constructors

RawPointerPoint()

public RawPointerPoint()

Properties

ContactRect

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

public Rect ContactRect { get; set; }

Property Value

Rect

Position

Pointer position, in client DIPs.

public Point Position { readonly get; set; }

Property Value

Point

Pressure

Gets a value that indicates the force that the pointer device (typically a pen/stylus) exerts on the surface of the digitizer.

public float Pressure { readonly get; set; }

Property Value

float

A value from 0 to 1.0. The default value is 0.5.

Twist

Gets 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).

public float Twist { readonly get; set; }

Property Value

float

A value between 0.0 and 359.0 in degrees of rotation. The default value is 0.0.

XTilt

Gets 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).

public float XTilt { readonly get; set; }

Property Value

float

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.

YTilt

Gets 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).

public float YTilt { readonly get; set; }

Property Value

float

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.

Methods

Equals(RawPointerPoint)

public readonly bool Equals(RawPointerPoint other)

Parameters

other RawPointerPoint

Returns

bool

Equals(object)

public override readonly bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override readonly int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RawPointerPoint, RawPointerPoint)

public static bool operator ==(RawPointerPoint left, RawPointerPoint right)

Parameters

left RawPointerPoint
right RawPointerPoint

Returns

bool

operator !=(RawPointerPoint, RawPointerPoint)

public static bool operator !=(RawPointerPoint left, RawPointerPoint right)

Parameters

left RawPointerPoint
right RawPointerPoint

Returns

bool