Avalonia UI Framework - API - MouseDevice Class

MouseDevice Class

Summary

Represents a mouse device.
Namespace
Avalonia.Input
Interfaces
Base Types
  • object
Derived Types
graph TD Base0["object"]-->Type Interface0["IMouseDevice"]-.->Type click Interface0 "/api/Avalonia.Input/IMouseDevice" Interface1["IPointerDevice"]-.->Type click Interface1 "/api/Avalonia.Input/IPointerDevice" Interface2["IInputDevice"]-.->Type click Interface2 "/api/Avalonia.Input/IInputDevice" Type["MouseDevice"] class Type type-node Type-->Derived0["AndroidMouseDevice"] click Derived0 "/api/Avalonia.Android.Platform.Input/AndroidMouseDevice"

Syntax

public class MouseDevice : IMouseDevice, IPointerDevice, IInputDevice

Properties

Name Value Summary
Captured IInputElement
Gets the control that is currently capturing by the mouse, if any.
Position Point
Gets the mouse position, in screen coordinates.

Methods

Name Value Summary
Capture(IInputElement) void
Captures mouse input to the specified control.
GetPosition(IVisual) Point
Gets the mouse position relative to a control.
ProcessRawEvent(RawInputEventArgs) void