Table of Contents

Class RawPointerEventArgs

Namespace
Avalonia.Input.Raw
Assembly
Avalonia.Base.dll

A raw mouse event.

[PrivateApi]
public class RawPointerEventArgs : RawInputEventArgs
Inheritance
RawPointerEventArgs
Derived
Inherited Members

Constructors

RawPointerEventArgs(IInputDevice, ulong, IInputRoot, RawPointerEventType, RawPointerPoint, RawInputModifiers)

Initializes a new instance of the RawPointerEventArgs class.

public RawPointerEventArgs(IInputDevice device, ulong timestamp, IInputRoot root, RawPointerEventType type, RawPointerPoint point, RawInputModifiers inputModifiers)

Parameters

device IInputDevice

The associated device.

timestamp ulong

The event timestamp.

root IInputRoot

The root from which the event originates.

type RawPointerEventType

The type of the event.

point RawPointerPoint

The point properties and position, in client DIPs.

inputModifiers RawInputModifiers

The input modifiers.

RawPointerEventArgs(IInputDevice, ulong, IInputRoot, RawPointerEventType, Point, RawInputModifiers)

Initializes a new instance of the RawPointerEventArgs class.

public RawPointerEventArgs(IInputDevice device, ulong timestamp, IInputRoot root, RawPointerEventType type, Point position, RawInputModifiers inputModifiers)

Parameters

device IInputDevice

The associated device.

timestamp ulong

The event timestamp.

root IInputRoot

The root from which the event originates.

type RawPointerEventType

The type of the event.

position Point

The mouse position, in client DIPs.

inputModifiers RawInputModifiers

The input modifiers.

Properties

InputModifiers

Gets the input modifiers.

public RawInputModifiers InputModifiers { get; set; }

Property Value

RawInputModifiers

IntermediatePoints

Points that were traversed by a pointer since the previous relevant event, only valid for Move and TouchUpdate

public Lazy<IReadOnlyList<RawPointerPoint>?>? IntermediatePoints { get; set; }

Property Value

Lazy<IReadOnlyList<RawPointerPoint>>

Point

Gets the pointer properties and position, in client DIPs.

public RawPointerPoint Point { get; set; }

Property Value

RawPointerPoint

Position

Gets the mouse position, in client DIPs.

public Point Position { get; set; }

Property Value

Point

RawPointerId

Gets the raw pointer identifier.

public long RawPointerId { get; set; }

Property Value

long

Type

Gets the type of the event.

public RawPointerEventType Type { get; set; }

Property Value

RawPointerEventType