Cursor

D class that wraps SDL_Cursor which sets cursor appearance

Constructors

this
this(SDL_Cursor* sdlCursor, bool isOwner, void* userRef)

Constructs a dsdl2.Cursor from a vanilla SDL_Cursor* from bindbc-sdl

this
this(Surface surface, uint[2] hotPosition)

Constructs a dsdl2.Cursor from a dsdl2.Surface, which wraps SDL_CreateColorCursor

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

systemArrow
alias systemArrow = _multiton!SDL_SYSTEM_CURSOR_ARROW

Retrieves one of the dsdl2.Cursor system cursor presets from SDL_SYSTEM_CURSOR_* enumeration constants

systemCrosshair
alias systemCrosshair = _multiton!SDL_SYSTEM_CURSOR_CROSSHAIR
Undocumented in source.
systemHand
alias systemHand = _multiton!SDL_SYSTEM_CURSOR_HAND
Undocumented in source.
systemIBeam
alias systemIBeam = _multiton!SDL_SYSTEM_CURSOR_IBEAM
Undocumented in source.
systemNo
alias systemNo = _multiton!SDL_SYSTEM_CURSOR_NO
Undocumented in source.
systemSizeAll
alias systemSizeAll = _multiton!SDL_SYSTEM_CURSOR_SIZEALL
Undocumented in source.
systemSizeNESW
alias systemSizeNESW = _multiton!SDL_SYSTEM_CURSOR_SIZENESW
Undocumented in source.
systemSizeNS
alias systemSizeNS = _multiton!SDL_SYSTEM_CURSOR_SIZENS
Undocumented in source.
systemSizeNWSE
alias systemSizeNWSE = _multiton!SDL_SYSTEM_CURSOR_SIZENWSE
Undocumented in source.
systemSizeWE
alias systemSizeWE = _multiton!SDL_SYSTEM_CURSOR_SIZEWE
Undocumented in source.
systemWait
alias systemWait = _multiton!SDL_SYSTEM_CURSOR_WAIT
Undocumented in source.
systemWaitArrow
alias systemWaitArrow = _multiton!SDL_SYSTEM_CURSOR_WAITARROW
Undocumented in source.

Functions

opEquals
bool opEquals(Cursor rhs)

Equality operator overload

set
void set()

Wraps SDL_SetCursor which sets the dsdl2.Cursor to be the cursor

toHash
hash_t toHash()

Gets the hash of the dsdl2.Cursor

toString
string toString()

Formats the dsdl2.Cursor into its construction representation: "dsdl2.Cursor(<sdlCursor>)"

Static functions

_multiton
Cursor _multiton()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

sdlCursor
SDL_Cursor* sdlCursor;

Internal SDL_Cursor pointer

Meta