Skip to main content

IPointer Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

Identifies specific pointer generated by input device.

Definition​

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

[NotClientImplementableAttribute]
public interface IPointer
View Source

Remarks​

Some devices, for instance, touchscreen might generate a pointer on each physical contact.

Properties​

CapturedGets the control that is currently capturing by the pointer, if any.
IdGets a unique identifier for the input pointer.
IsPrimaryGets a value that indicates whether the input is from the primary pointer when multiple pointers are registered.
TypeGets the pointer device type.

Methods​

Capture(IInputElement)Captures pointer input to the specified control.

See Also​

Reference​

Avalonia.Input Namespace