SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_SetTrayVisible

Show or hide a tray icon.

Header File

Defined in <SDL3/SDL_tray.h>

Syntax

bool SDL_SetTrayVisible(SDL_Tray *tray, bool visible);

Function Parameters

SDL_Tray * tray the tray icon to be updated.
bool visible true to show the tray icon, false to hide it.

Return Value

(bool) Returns true on success or false on failure; call SDL_GetError() for more information.

Remarks

Tray icons are visible when they are created.

Thread Safety

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

Version

This function is available since SDL 3.6.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryTray


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.