Cursor.this - multiple declarations

Function Cursor.this

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

this (
  sdl.mouse.SDL_Cursor* sdlCursor,
  bool isOwner = true,
  void* userRef = null
);

Parameters

NameDescription
sdlCursor the SDL_Cursor pointer to manage
isOwner whether the instance owns the given SDL_Cursor* and should destroy it on its own
userRef optional pointer to maintain reference link, avoiding GC cleanup

Function Cursor.this

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

this (
  Surface surface,
  uint[2] hotPosition
) @trusted;

Parameters

NameDescription
surface surface image of the cursor
hotPosition pixel position of the cursor hotspot

Throws

dsdl2.Exception if cursor creation failed