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