Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_SetTrayIcon - Updates the system tray icon's icon.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

tray   the tray icon to be updated.

       icon   the new icon. May be NULL.

Name

       SDL_SetTrayIcon - Updates the system tray icon's icon.

See Also

SDL_CreateTray(3)

Simple Directmedia Layer                           SDL 3.2.20                                 SDL_SetTrayIcon(3)

Synopsis

#include<SDL3/SDL_tray.h>voidSDL_SetTrayIcon(SDL_Tray*tray,SDL_Surface*icon);

Thread Safety

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

See Also