DOKK / manpages / debian 13 / libsdl3-doc / SDL_SetTrayEntryCallback.3.en
SDL_SetTrayEntryCallback(3) SDL3 FUNCTIONS SDL_SetTrayEntryCallback(3)

SDL_SetTrayEntryCallback - Sets a callback to be invoked when the entry is selected.

Defined in SDL3/SDL_tray.h

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

the entry to be updated.
a callback to be invoked when the entry is selected.
an optional pointer to pass extra data to the callback when it will be invoked.

This function should be called on the thread that created the tray.

This function is available since SDL 3.2.0.

(3), SDL_GetTrayEntries(3), (3), SDL_InsertTrayEntryAt(3)

SDL 3.2.10 Simple Directmedia Layer