getDefault static method

Pointer<SdlCursor> getDefault()

Get the default cursor.

You do not have to call SDL_DestroyCursor() on the return value, but it is safe to do so.

\returns the default cursor on success or NULL on failuree; call SDL_GetError() for more information.

\threadsafety This function should only be called on the main thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC SDL_Cursor * SDLCALL SDL_GetDefaultCursor(void)

Implementation

static Pointer<SdlCursor> getDefault() {
  return sdlGetDefaultCursor();
}