Man page - sdl_settrayentrycallback(3)
Packages contains this manual
Manual
SDL_SetTrayEntryCallback
NAMEHEADER FILE
SYNOPSIS
FUNCTION PARAMETERS
THREAD SAFETY
AVAILABILITY
SEE ALSO
NAME
SDL_SetTrayEntryCallback - 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)