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