SDL2Cursor

Mouse cursor, can be created from custom bitmap or from system defaults.

Constructors

this
this(SDL2 sdl2, SDL2Surface surface, int hotspotX, int hotspotY)

Creates a cursor from a SDL surface. The surface should outlive this cursor, its ownership will not be taken.

this
this(SDL2 sdl2, SDL_SystemCursor id)

Creates a system cursor.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
handle
SDL_Cursor* handle()
setCurrent
void setCurrent()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getCurrent
SDL2Cursor getCurrent(SDL2 sdl2)
getDefault
SDL2Cursor getDefault(SDL2 sdl2)

Meta