sdlSetTrayIcon function

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.

\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 = libSdl3.lookupFunction<
      Void Function(Pointer<SdlTray> tray, Pointer<SdlSurface> icon),
      void Function(
          Pointer<SdlTray> tray, Pointer<SdlSurface> icon)>('SDL_SetTrayIcon');
  return sdlSetTrayIconLookupFunction(tray, icon);
}