SDL_SetTrayEntryCallback - Sets a callback to be invoked when the entry is selected.
Contents
Availability
This function is available since SDL 3.2.0.
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.
Header File
Defined in SDL3/SDL_tray.h
Name
SDL_SetTrayEntryCallback - Sets a callback to be invoked when the entry is selected.
See Also
•(3), SDL_GetTrayEntries(3), •(3), SDL_InsertTrayEntryAt(3) Simple Directmedia Layer SDL 3.2.10 SDL_SetTrayEntryCallback(3)
Synopsis
#include"SDL3/SDL.h"voidSDL_SetTrayEntryCallback(SDL_TrayEntry*entry,SDL_TrayCallbackcallback,void*userdata);
Thread Safety
This function should be called on the thread that created the tray.
