SDL_GetTrayMenuParentEntry
Gets the entry for which the menu is a submenu, if the current menu is a submenu.
- Provided by: libsdl3-doc (Version: 3.2.20+ds-2)
- Source: libsdl3
- Report a bug
Gets the entry for which the menu is a submenu, if the current menu is a submenu.
#include <SDL3/SDL_tray.h>
SDL_TrayEntry * SDL_GetTrayMenuParentEntry(SDL_TrayMenu *menu);
Either this function or SDL_GetTrayMenuParentTray() will return non-NULL for any given menu.
Returns the parent entry, or NULL if this menu is not a submenu.
This function should be called on the thread that created the tray.
This function is available since SDL 3.2.0.