sdlSetTrayIcon function tray

void sdlSetTrayIcon(
  1. Pointer<SdlTray> tray,
  2. Pointer<SdlSurface> icon
)

Updates the system tray icon's icon.

\param tray the tray icon to be updated. \param icon the new icon. May be NULL.

\threadsafety This function should be called on the thread that created the tray.

\since This function is available since SDL 3.2.0.

\sa SDL_CreateTray

extern SDL_DECLSPEC void SDLCALL SDL_SetTrayIcon(SDL_Tray *tray, SDL_Surface *icon)

Implementation

void sdlSetTrayIcon(Pointer<SdlTray> tray, Pointer<SdlSurface> icon) {
  final sdlSetTrayIconLookupFunction = _libSdl
      .lookupFunction<
        Void Function(Pointer<SdlTray> tray, Pointer<SdlSurface> icon),
        void Function(Pointer<SdlTray> tray, Pointer<SdlSurface> icon)
      >('SDL_SetTrayIcon');
  return sdlSetTrayIconLookupFunction(tray, icon);
}