SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_TrayClickCallback

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

Header File

Defined in <SDL3/SDL_tray.h>

Syntax

typedef bool (SDLCALL *SDL_TrayClickCallback)(void *userdata, SDL_Tray *tray);

Function Parameters

userdata an optional pointer to pass extra data to the callback when it will be invoked. May be NULL.
tray 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.

Version

This datatype is available since SDL 3.6.0.

See Also


CategoryAPI, CategoryAPIDatatype, CategoryTray


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.