SDL_CreateTrayMenu

Create a menu for a system tray.

This should be called at most once per tray icon.

This function does the same thing as SDL_CreateTraySubmenu(), except that it takes a SDL_Tray instead of a SDL_TrayEntry.

A menu does not need to be destroyed; it will be destroyed with the tray.

extern (C) nothrow @nogc extern
SDL_CreateTrayMenu

Parameters

tray SDL_Tray*

The tray to bind the menu to.

Return Value

the newly created menu.

Threadsafety: This function should be called on the thread that created the tray.

See Also

Meta