Class MouseCursor
Describes a mouse cursor.
public class MouseCursor : IDisposable
- Inheritance
-
MouseCursor
- Implements
- Inherited Members
Properties
Arrow
Gets the default arrow cursor.
public static MouseCursor Arrow { get; }
Property Value
Crosshair
Gets the crosshair ("+") cursor.
public static MouseCursor Crosshair { get; }
Property Value
Hand
Gets the hand cursor, usually used for web links.
public static MouseCursor Hand { get; }
Property Value
Handle
Gets a handle for this cursor.
public nint Handle { get; }
Property Value
IBeam
Gets the cursor that appears when the mouse is over text editing regions.
public static MouseCursor IBeam { get; }
Property Value
No
Gets the cursor that points that something is invalid, usually a cross.
public static MouseCursor No { get; }
Property Value
SizeAll
Gets the size all cursor which points in all directions.
public static MouseCursor SizeAll { get; }
Property Value
SizeNESW
Gets the northeast/southwest ("/") cursor.
public static MouseCursor SizeNESW { get; }
Property Value
SizeNS
Gets the vertical north/south ("|") cursor.
public static MouseCursor SizeNS { get; }
Property Value
SizeNWSE
Gets the northwest/southeast ("") cursor.
public static MouseCursor SizeNWSE { get; }
Property Value
SizeWE
Gets the horizontal west/east ("-") cursor.
public static MouseCursor SizeWE { get; }
Property Value
Wait
Gets the waiting cursor that appears while the application/system is busy.
public static MouseCursor Wait { get; }
Property Value
WaitArrow
Gets the cross between Arrow and Wait cursors.
public static MouseCursor WaitArrow { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
FromTexture2D(Texture2D, int, int)
Creates a mouse cursor from the specified texture.
public static MouseCursor FromTexture2D(Texture2D texture, int originx, int originy)
Parameters
texture
Texture2DTexture to use as the cursor image.
originx
intX cordinate of the image that will be used for mouse position.
originy
intY cordinate of the image that will be used for mouse position.