SDL_GetTrayMenuParentTray

Gets the tray for which this menu is the first-level menu, if the current menu isn't a submenu.

Either this function or SDL_GetTrayMenuParentEntry() will return non-null for any given menu.

extern (C) nothrow @nogc extern
SDL_GetTrayMenuParentTray

Parameters

menu SDL_TrayMenu*

the menu for which to get the parent enttrayry.

Return Value

Type: SDL_Tray*

The parent tray, or null if this menu is a submenu.

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

See Also

Meta