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

SDL_CreateTrayWithProperties

Create an icon to be placed in the operating system's tray, or equivalent.

Header File

Defined in <SDL3/SDL_tray.h>

Syntax

SDL_Tray * SDL_CreateTrayWithProperties(SDL_PropertiesID props);

Function Parameters

SDL_PropertiesID props the properties to use.

Return Value

(SDL_Tray *) Returns The newly created system tray icon.

Remarks

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.

These are the supported properties:

Thread Safety

This function should only be called on the main thread.

Version

This function is available since SDL 3.6.0.

See Also


CategoryAPI, CategoryAPIFunction, 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.