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.

\since This function is available since SDL 2.0.0.

\sa SDL_FreeCursor

extern DECLSPEC SDL_Cursor *SDLCALL SDL_CreateSystemCursor(SDL_SystemCursor id)

Implementation

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