Skip to main content

PointerPointProperties Structure

Describes the state of a pointer device when it generated a specific input.

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public struct PointerPointProperties : IEquatable<PointerPointProperties>
InheritanceObjectValueType → PointerPointProperties
ImplementsIEquatable(PointerPointProperties)

Constructors

PointerPointProperties()Initializes a new instance of the PointerPointProperties class
PointerPointProperties(RawInputModifiers, PointerUpdateKind)Initializes a new instance of the PointerPointProperties class
PointerPointProperties(RawInputModifiers, PointerUpdateKind, Single, Single, Single, Single)Initializes a new instance of the PointerPointProperties class
PointerPointProperties(RawInputModifiers, PointerUpdateKind, Single, Single, Single, Single, Rect)Initializes a new instance of the PointerPointProperties class

Properties

ContactRectGets the bounding rectangle of the contact area (typically from touch input).
IsBarrelButtonPressedGets whether the barrel button of the pen/stylus device was pressed when this input occurred.
IsEraserGets whether the input was generated by the use of a pen eraser.
IsInvertedGets whether the input was generated by an inverted digitizer pen.
IsLeftButtonPressedGets whether the device's primary action (e.g. Left) was active when this input occurred.
IsMiddleButtonPressedGets whether the device's tertiary action (e.g. Middle) was active when this input occurred.
IsRightButtonPressedGets whether the device's secondary action (e.g. Right) was active when this input occurred.
IsXButton1PressedGets whether the device's first extended action (e.g. XButton1) was active when this input occurred.
IsXButton2PressedGets whether the device's second extended action (e.g. XButton2) was active when this input occurred.
None 
PointerUpdateKindGets the state change that triggered this input. This is typically a button press or release.
PressureGets the force that the pointer device (typically a pen/stylus) was exerting on the surface of the digitizer when this input occurred.
TwistGets the clockwise rotation in degrees of the pen around its own major axis (such as when the user spins the pen in their fingers) when this input occurred.
XTiltGets how many degrees of rotation the pen/stylus was tilted left (negative values) or right (positive values) when this input occurred.
YTiltGets how many degrees of rotation the pen/stylus was tilted up (negative values) or down (positive values) when this input occurred.

Methods

GetType()Gets the Type of the current instance.
(Inherited from Object)

See Also

Reference

Avalonia.Input Namespace