sdlCreateSystemCursor function

Pointer<SdlCursor> sdlCreateSystemCursor(
  1. int id
)

Create a system cursor.

\param id an SDL_SystemCursor enum value. \returns a cursor on success or NULL on failure; 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.

\sa SDL_DestroyCursor

extern SDL_DECLSPEC SDL_Cursor * SDLCALL SDL_CreateSystemCursor(SDL_SystemCursor id)

Implementation

Pointer<SdlCursor> sdlCreateSystemCursor(int id) {
  final sdlCreateSystemCursorLookupFunction = libSdl3.lookupFunction<
      Pointer<SdlCursor> Function(Int32 id),
      Pointer<SdlCursor> Function(int id)>('SDL_CreateSystemCursor');
  return sdlCreateSystemCursorLookupFunction(id);
}