SDL_SetTrayEntryCallback(3)

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.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.