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

SDL_IsTraySupported

Check whether or not tray icons can be created.

Header File

Defined in <SDL3/SDL_tray.h>

Syntax

bool SDL_IsTraySupported(void);

Return Value

(bool) Returns true if trays are available, false otherwise.

Remarks

Note that this function does not guarantee that SDL_CreateTray() will or will not work; you should still check SDL_CreateTray() for errors.

Using tray icons require the video subsystem.

Thread Safety

This function should only be called on the main thread. It will return false if not called on the main thread.

Version

This function is available since SDL 3.4.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.