SDL_SetTrayEntryCallback - Man Page
Sets a callback to be invoked when the entry is selected.
Header File
Defined in SDL3/SDL_tray.h
Synopsis
#include "SDL3/SDL.h" void SDL_SetTrayEntryCallback(SDL_TrayEntry *entry, SDL_TrayCallback callback, void *userdata);
Function Parameters
- entry
the entry to be updated.
- callback
a callback to be invoked when the entry is selected.
- userdata
an optional pointer to pass extra data to the callback when it will be invoked.
Thread Safety
This function should be called on the thread that created the tray.
Availability
This function is available since SDL 3.2.0.
See Also
·(3), SDL_GetTrayEntries(3), ·(3), SDL_InsertTrayEntryAt(3)
Referenced By
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS