MouseCursor

class MouseCursor : System.Object, System.IDisposable

Describes a mouse cursor.

readonly MouseCursor Arrow

Gets the default arrow cursor.

readonly MouseCursor IBeam

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

readonly MouseCursor Wait

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

readonly MouseCursor Crosshair

Gets the crosshair (“+”) cursor.

readonly MouseCursor WaitArrow

Gets the cross between Arrow and Wait cursors.

readonly MouseCursor SizeNWSE

Gets the northwest/southeast (“”) cursor.

readonly MouseCursor SizeNESW

Gets the northeast/southwest (“/”) cursor.

readonly MouseCursor SizeWE

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

readonly MouseCursor SizeNS

Gets the vertical north/south (“|”) cursor.

readonly MouseCursor SizeAll

Gets the size all cursor which points in all directions.

readonly MouseCursor No

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

readonly MouseCursor Hand

Gets the hand cursor, usually used for web links.

readonly System.IntPtr Handle
public MouseCursor FromTexture2D(Texture2D texture, int originx, int originy)

Creates a mouse cursor from the specified texture.

Parameters:
  • texture (Microsoft.Xna.Framework.Graphics.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.
public void Dispose()