sdlSetWindowIcon function

void sdlSetWindowIcon(
  1. Pointer<SdlWindow> window,
  2. Pointer<SdlSurface> icon
)

Set the icon for a window.

\param window the window to change \param icon an SDL_Surface structure containing the icon for the window

\since This function is available since SDL 2.0.0.

extern DECLSPEC void SDLCALL SDL_SetWindowIcon(SDL_Window * window, SDL_Surface * icon)

Implementation

void sdlSetWindowIcon(Pointer<SdlWindow> window, Pointer<SdlSurface> icon) {
  final sdlSetWindowIconLookupFunction = libSdl2.lookupFunction<
      Void Function(Pointer<SdlWindow> window, Pointer<SdlSurface> icon),
      void Function(Pointer<SdlWindow> window,
          Pointer<SdlSurface> icon)>('SDL_SetWindowIcon');
  return sdlSetWindowIconLookupFunction(window, icon);
}