MouseCursor Class (Microsoft.Xna.Framework.Input)

Describes a mouse cursor.

Namespace: Microsoft.Xna.Framework.Input
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public class MouseCursor : IDisposable

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The MouseCursor type exposes the following members.

  Platforms Name Description
Arrow Gets the default arrow cursor. 
Crosshair Gets the crosshair ("+") cursor. 
Hand Gets the hand cursor, usually used for web links. 
IBeam Gets the cursor that appears when the mouse is over text editing regions. 
No Gets the cursor that points that something is invalid, usually a cross. 
SizeAll Gets the size all cursor which points in all directions. 
SizeNESW Gets the northeast/southwest ("/") cursor. 
SizeNS Gets the vertical north/south ("|") cursor. 
SizeNWSE Gets the northwest/southeast ("\") cursor. 
SizeWE Gets the horizontal west/east ("-") cursor. 
Wait Gets the waiting cursor that appears while the application/system is busy. 
WaitArrow Gets the cross between Arrow and Wait cursors. 
  Platforms Name Description
Dispose  (Implements IDisposable.Dispose().)
FromTexture2D Creates a mouse cursor from the specified texture. 
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop