Table of Contents

Class MouseCursor

Namespace
Microsoft.Xna.Framework.Input
Assembly
MonoGame.Framework.dll

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

MouseCursor

Crosshair

Gets the crosshair ("+") cursor.

public static MouseCursor Crosshair { get; }

Property Value

MouseCursor

Hand

Gets the hand cursor, usually used for web links.

public static MouseCursor Hand { get; }

Property Value

MouseCursor

Handle

Gets a handle for this cursor.

public nint Handle { get; }

Property Value

nint

IBeam

Gets the cursor that appears when the mouse is over text editing regions.

public static MouseCursor IBeam { get; }

Property Value

MouseCursor

No

Gets the cursor that points that something is invalid, usually a cross.

public static MouseCursor No { get; }

Property Value

MouseCursor

SizeAll

Gets the size all cursor which points in all directions.

public static MouseCursor SizeAll { get; }

Property Value

MouseCursor

SizeNESW

Gets the northeast/southwest ("/") cursor.

public static MouseCursor SizeNESW { get; }

Property Value

MouseCursor

SizeNS

Gets the vertical north/south ("|") cursor.

public static MouseCursor SizeNS { get; }

Property Value

MouseCursor

SizeNWSE

Gets the northwest/southeast ("") cursor.

public static MouseCursor SizeNWSE { get; }

Property Value

MouseCursor

SizeWE

Gets the horizontal west/east ("-") cursor.

public static MouseCursor SizeWE { get; }

Property Value

MouseCursor

Wait

Gets the waiting cursor that appears while the application/system is busy.

public static MouseCursor Wait { get; }

Property Value

MouseCursor

WaitArrow

Gets the cross between Arrow and Wait cursors.

public static MouseCursor WaitArrow { get; }

Property Value

MouseCursor

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 Texture2D

Texture to use as the cursor image.

originx int

X cordinate of the image that will be used for mouse position.

originy int

Y cordinate of the image that will be used for mouse position.

Returns

MouseCursor