table of contents
SDL_CreateTray(3) | SDL3 FUNCTIONS | SDL_CreateTray(3) |
NAME¶
SDL_CreateTray - Create an icon to be placed in the operating system's tray, or equivalent.
SYNOPSIS¶
#include <SDL3/SDL_tray.h>
SDL_Tray * SDL_CreateTray(SDL_Surface *icon, const char *tooltip);
DESCRIPTION¶
Many platforms advise not using a system tray unless persistence is a necessary feature. Avoid needlessly creating a tray icon, as the user may feel like it clutters their interface.
Using tray icons require the video subsystem.
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns The newly created system tray icon.
THREAD SAFETY¶
This function should only be called on the main thread.
AVAILABILITY¶
This function is available since SDL 3.2.0.
SEE ALSO¶
SDL_CreateTrayMenu(3), SDL_GetTrayMenu(3), SDL_DestroyTray(3)
SDL 3.2.14 | Simple Directmedia Layer |