Class Cursor
Basic operations to show, hide and load a cursor.
public class Cursor
- Inheritance
-
Cursor
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
datawintWidth of cursor
hintHeight of cursor
hot_xintHotspot X coordinate of cursor
hot_yintHotspot Y coordinate of cursor
Properties
Handle
Access to low level pointer to the SDL_Cursor struct.
public IntPtr 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
curCursorNew cursor to show.
Show()
Show cursor.
public static void Show()