Cursor

A cursor is how the mouse at its location looks While this class should *technically* be defined in d2d.sdl2, its only use is in Mouse And since this class is small, instead of giving it its own file, I'll keep it here

Constructors

this
this(Surface appearance, int hotspotX, int hotspotY)

Creates a cursor from a surface and the hotspot The hotspot is where on the surface is the actual mouse location

this
this(SDL_SystemCursor id)

Creates a cursor from a predefined system cursor

this
this(SDL_Cursor* alreadyExisting)

Creates a cursor from an already SDL_Cursor

Destructor

~this
~this()

Ensures that SDL can properly dispose of the cursor

Members

Properties

handle
handle [@property getter]

Returns the raw SDL data of this object

Meta