Class Cursor
Basic operations to show, hide and load a cursor.
public class Cursor- Inheritance
- 
      objectCursor
Constructors
Cursor(byte[], byte[], int, int, int, int)
Initialize a cursor with data and mask. For more details, see
https://wiki.libsdl.org/SDL_CreateCursor.
public Cursor(byte[] data, byte[] mask, int w, int h, int hot_x, int hot_y)Parameters
- databyte[]
- Actual cursor image 
- maskbyte[]
- Mask for - data
- wint
- Width of cursor 
- hint
- Height of cursor 
- hot_xint
- Hotspot X coordinate of cursor 
- hot_yint
- Hotspot Y coordinate of cursor 
Properties
Handle
Access to low level pointer to the SDL_Cursor struct.
public nint Handle { get; }Property Value
Position
Position of cursor on screen.
public static Point Position { get; set; }Property Value
Methods
Hide()
Hide cursor.
public static void Hide()SetCursor(Cursor)
Set cursor with cur.
public static void SetCursor(Cursor cur)Parameters
- curCursor
- New cursor to show. 
Show()
Show cursor.
public static void Show()