# SDL_GetTrayVisible Get whether a tray icon is visible. ## Header File Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_tray.h) ## Syntax ```c bool SDL_GetTrayVisible(SDL_Tray *tray); ``` ## Function Parameters | | | | | ---------------------- | -------- | ----------------------- | | [SDL_Tray](SDL_Tray) * | **tray** | the tray icon to query. | ## Return Value (bool) Returns true if the tray icon is visible, false if it is hidden or on failure; call [SDL_GetError](SDL_GetError)() for more information. ## 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 - [SDL_SetTrayVisible](SDL_SetTrayVisible) ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryTray](CategoryTray)