Create an icon to be placed in the operating system's tray, or equivalent.
Defined in <SDL3/SDL_tray.h>
const char *tooltip); SDL_Tray* SDL_CreateTray(SDL_Surface *icon,
SDL_Surface * | icon | a surface to be used as icon. May be NULL. |
const char * | tooltip | a tooltip to be displayed when the mouse hovers the icon. Not supported on all platforms. May be NULL. |
(SDL_Tray *) Returns The newly created system tray icon.
Many platforms advise not using a system tray unless persistence is a necessary feature. Avoid needlessly creating a tray icon, as the user may feel like it clutters their interface.
Using tray icons require the video subsystem.
This function is available since SDL 3.2.0.