A callback that is invoked when a tray menu is opened or closed.
Defined in <SDL3/SDL_tray.h>
typedef void (SDLCALL *SDL_TrayMenuOpenCallback)(void *userdata, SDL_TrayMenu *menu, bool open);| 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. |
This datatype is available since SDL 3.6.0.