Cursor.this - multiple declarations
Function Cursor.this
Constructs a dsdl from a vanilla SDL_Cursor* from bindbc-sdl
this
(
sdl .mouse .SDL_Cursor* sdlCursor,
bool isOwner = true,
void* userRef = null
);
Parameters
| Name | Description |
|---|---|
| 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 dsdl from a dsdl, which wraps SDL_CreateColorCursor
Parameters
| Name | Description |
|---|---|
| surface | surface image of the cursor |
| hotPosition | pixel position of the cursor hotspot |
Throws
dsdl if cursor creation failed