Scroll to navigation

SDL_TrayClickCallback(3type) SDL3 DATATYPES SDL_TrayClickCallback(3type)

NAME

SDL_TrayClickCallback - A callback that is invoked when the tray icon is clicked.

SYNOPSIS

#include <SDL3/SDL_tray.h>
typedef bool (SDLCALL *SDL_TrayClickCallback)(void *userdata, SDL_Tray *tray);

FUNCTION PARAMETERS

an optional pointer to pass extra data to the callback when it will be invoked. May be NULL.
the tray that was clicked.

RETURN VALUE

Returns true to show the tray menu after the callback returns, false to skip showing the menu. This return value is only used for left and right click callbacks; other mouse events ignore the return value.

AVAILABILITY

This datatype is available since SDL 3.6.0.

SEE ALSO

SDL_CreateTrayWithProperties(3)

SDL 3.5.0 Simple Directmedia Layer