SDL_SetTrayEntryCallback3
Sets a callback to be invoked when the entry is selected.
Usage
#include "SDL3/SDL.h"
void SDL_SetTrayEntryCallback(SDL_TrayEntry *entry, SDL_TrayCallback callback, void *userdata);
Header file
Defined in SDL3/SDL_tray.h
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.