Class WPFMouseDispatcher
Implements
Inherited Members
Namespace: Evergine.WPF
Assembly: Evergine.WPF.dll
Syntax
public class WPFMouseDispatcher : MouseDispatcher, IDisposable
Constructors
WPFMouseDispatcher(FrameworkElement, float)
Initializes a new instance of the WPFMouse
Declaration
public WPFMouseDispatcher(FrameworkElement frameworkElement, float dpiDensity = 1)
Parameters
Type | Name | Description |
---|---|---|
Framework |
frameworkElement | The Framework |
float | dpiDensity | The dpi densit of the element. |
Properties
CursorType
Gets the active cursor type. It can be changed calling the method Try
Declaration
public override CursorTypes CursorType { get; }
Property Value
Type | Description |
---|---|
Cursor |
Overrides
Methods
Dispose()
Declaration
public void Dispose()
NativeSetCursorPosition(Point)
Sets natively the cursor position.
Declaration
protected override bool NativeSetCursorPosition(Point position)
Parameters
Type | Name | Description |
---|---|---|
Point | position | The new position. |
Returns
Type | Description |
---|---|
bool | True if the operation was successful. False otherwise. |
Overrides
TrySetCursorType(CursorTypes)
Tries to change the mouse cursor type.
Declaration
public override bool TrySetCursorType(CursorTypes cursorType)
Parameters
Type | Name | Description |
---|---|---|
Cursor |
cursorType | The new cursor type. |
Returns
Type | Description |
---|---|
bool |
|