DOKK / manpages / debian 13 / libsdl3-doc / SDL_TrayCallback.3type.en
SDL_TrayCallback(3type) SDL3 DATATYPES SDL_TrayCallback(3type)

SDL_TrayCallback - A callback that is invoked when a tray entry is selected.

Defined in SDL3/SDL_tray.h

#include "SDL3/SDL.h"
typedef void (SDLCALL *SDL_TrayCallback)(void *userdata, SDL_TrayEntry *entry);

an optional pointer to pass extra data to the callback when it will be invoked.
the tray entry that was selected.

This datatype is available since SDL 3.2.0.

(3), SDL_SetTrayEntryCallback(3)

SDL 3.2.10 Simple Directmedia Layer