SDL Wiki

SDL_GetTrayMenuParentTray

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

Header File

Defined in <SDL3/SDL_tray.h>

Syntax

SDL_Tray * SDL_GetTrayMenuParentTray(SDL_TrayMenu *menu);

Function Parameters

SDL_TrayMenu * menu the menu for which to get the parent enttrayry.

Return Value

(SDL_Tray *) Returns the parent tray, or NULL if this menu is a submenu.

Remarks

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

Thread Safety

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

Version

This function is available since SDL 3.2.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryTray


[ edit | delete | history | feedback | raw ]

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

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.