SDL_GetTrayMenuParentTray - Gets the tray for which this menu is the first-level menu, if the current
Contents
Availability
This function is available since SDL 3.2.0.
Description
Either this function or
SDL_GetTrayMenuParentEntry () will return non-NULL for any given menu.
Function Parameters
menu the menu for which to get the parent enttrayry.
Header File
Defined in SDL3/SDL_tray.h
Name
SDL_GetTrayMenuParentTray - Gets the tray for which this menu is the first-level menu, if the current
menu isn't a submenu.
Return Value
( SDL_Tray
*) Returns the parent tray, or NULL if this menu is a submenu.
See Also
•(3), SDL_CreateTrayMenu(3), •(3), SDL_GetTrayMenuParentEntry(3) Simple Directmedia Layer SDL 3.2.10 SDL_GetTrayMenuParentTray(3)
Synopsis
#include"SDL3/SDL.h"SDL_Tray*SDL_GetTrayMenuParentTray(SDL_TrayMenu*menu);
Thread Safety
This function should be called on the thread that created the tray.
