SDL_SetTrayIcon - Man Page

Updates the system tray icon's icon.

Synopsis

#include <SDL3/SDL_tray.h>

void SDL_SetTrayIcon(SDL_Tray *tray, SDL_Surface *icon);

Function Parameters

tray

the tray icon to be updated.

icon

the new icon. May be NULL.

Thread Safety

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

Availability

This function is available since SDL 3.2.0.

See Also

SDL_CreateTray(3)

Info

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS