Summary
Represents a mouse device.
- Namespace
- Avalonia
.Input - Interfaces
-
- IMouseDevice
- IPointerDevice
- IInputDevice
- IDisposable
- 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 |
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 |
void |
Captures mouse input to the specified control.
|
Dispose |
void | |
GetPosition |
Point |
Gets the mouse position relative to a control.
|
ProcessRawEvent |
void | |
SceneInvalidated |
void | |
TopLevelClosed |
void |