Cursor.this

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

  1. this(SDL_Cursor* sdlCursor, bool isOwner, void* userRef)
  2. this(Surface surface, uint[2] hotPosition)
    class Cursor
    @trusted
    this

Parameters

surface Surface

surface image of the cursor

hotPosition uint[2]

pixel position of the cursor hotspot

Throws

dsdl2.Exception if cursor creation failed

Meta