# SDL_TrayActivateCallback A callback that is invoked when the tray icon is activated. ## Header File Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_tray.h) ## Syntax ```c typedef void (SDLCALL *SDL_TrayActivateCallback)(void *userdata, SDL_Tray *tray, const SDL_FPoint *position); ``` ## Function Parameters | | | | ------------ | ----------------------------------------------------------------------------------------------------- | | **userdata** | an optional pointer to pass extra data to the callback when it will be invoked. May be NULL. | | **tray** | the tray that was activated. | | **position** | the position of the activation in global screen coordinates, or NULL if the position isn't available. | ## Version This datatype is available since SDL 3.6.0. ## See Also - [SDL_CreateTrayWithProperties](SDL_CreateTrayWithProperties) ---- [CategoryAPI](CategoryAPI), [CategoryAPIDatatype](CategoryAPIDatatype), [CategoryTray](CategoryTray)