Show or hide a tray icon.
Defined in <SDL3/SDL_tray.h>
bool SDL_SetTrayVisible(SDL_Tray *tray, bool visible);| SDL_Tray * | tray | the tray icon to be updated. |
| bool | visible | true to show the tray icon, false to hide it. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
Tray icons are visible when they are created.
This function should be called on the thread that created the tray.
This function is available since SDL 3.6.0.