sdlCreateSystemCursor function mouse

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.2.0.

\sa SDL_DestroyCursor

extern SDL_DECLSPEC SDL_Cursor * SDLCALL SDL_CreateSystemCursor(SDL_SystemCursor id)

Implementation

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