table of contents
other versions
- experimental 3.5~git20260611~7c60bcd+ds-1
| 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¶
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 3.5.0 | Simple Directmedia Layer |