MouseDevice Class

Summary

Represents a mouse device.
Namespace
Avalonia.Input
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IMouseDevice"] click Interface0 "/api/Avalonia.Input/IMouseDevice" Type-.->Interface1["IPointerDevice"] click Interface1 "/api/Avalonia.Input/IPointerDevice" Type-.->Interface2["IInputDevice"] click Interface2 "/api/Avalonia.Input/IInputDevice" Type-.->Interface3["IDisposable"] Type["MouseDevice"] class Type type-node

Syntax

public class MouseDevice : IMouseDevice, IPointerDevice, IInputDevice, IDisposable

Constructors

Name Summary
MouseDevice(Pointer)

Properties

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

Methods

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