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
data
byte[]Actual cursor image
mask
byte[]Mask for
data
w
intWidth of cursor
h
intHeight of cursor
hot_x
intHotspot X coordinate of cursor
hot_y
intHotspot 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
cur
CursorNew cursor to show.
Show()
Show cursor.
public static void Show()