SDL_TrayCallback(3type)

SDL_TrayCallback3type

A callback that is invoked when a tray entry is selected.

Usage

#include "SDL3/SDL.h"

typedef void (SDLCALL *SDL_TrayCallback)(void *userdata, SDL_TrayEntry *entry);

Header file

Defined in SDL3/SDL_tray.h

Function parameters

userdata

an optional pointer to pass extra data to the callback when it will be invoked.

entry

the tray entry that was selected.

Availability

This datatype 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.