Cursor.this

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

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

Parameters

sdlCursor SDL_Cursor*

the SDL_Cursor pointer to manage

isOwner bool

whether the instance owns the given SDL_Cursor* and should destroy it on its own

userRef void*

optional pointer to maintain reference link, avoiding GC cleanup

Meta