Gets the entry for which the menu is a submenu, if the current menu is a submenu.
Defined in <SDL3/SDL_tray.h>
SDL_TrayEntry* SDL_GetTrayMenuParentEntry(SDL_TrayMenu *menu);
SDL_TrayMenu * | menu | the menu for which to get the parent entry. |
(SDL_TrayEntry *) Returns the parent entry, or NULL if this menu is not a submenu.
Either this function or SDL_GetTrayMenuParentTray() will return non-NULL for any given menu.
This function is available since SDL 3.2.0.