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

SDL_TrayMenuShownCallback

A callback that is invoked when a tray menu is shown or hidden.

Header File

Defined in <SDL3/SDL_tray.h>

Syntax

typedef void (SDLCALL *SDL_TrayMenuShownCallback)(void *userdata, SDL_TrayMenu *menu, bool shown);

Function Parameters

userdata an optional pointer to pass extra data to the callback when it will be invoked.
menu the tray menu that was shown or hidden.
shown true if the menu is shown, false if it is hidden.

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.