# SDL_TrayMenuShownCallback A callback that is invoked when a tray menu is shown or hidden. ## Header File Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_tray.h) ## Syntax ```c typedef void (SDLCALL *SDL_TrayMenuShownCallback)(void *userdata, SDL_TrayMenu *menu, bool shown); ``` ## Function Parameters | | | | ------------ | ------------------------------------------------------------------------------- | | **userdata** | an optional pointer to pass extra data to the callback when it will be invoked. | | **menu** | the tray menu that was shown or hidden. | | **shown** | true if the menu is shown, false if it is hidden. | ## Version This datatype is available since SDL 3.6.0. ## See Also - [SDL_SetTrayMenuShownCallback](SDL_SetTrayMenuShownCallback) ---- [CategoryAPI](CategoryAPI), [CategoryAPIDatatype](CategoryAPIDatatype), [CategoryTray](CategoryTray)