logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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.

See Also