SDL_GetTrayMenuParentEntry3
Gets the entry for which the menu is a submenu, if the current menu is a submenu.
Usage
#include "SDL3/SDL.h"
SDL_TrayEntry * SDL_GetTrayMenuParentEntry(SDL_TrayMenu *menu);
Header file
Defined in SDL3/SDL_tray.h
Overview
Either this function or
SDL_GetTrayMenuParentTray () will return non-NULL for any given menu.
Function parameters
- menu
-
the menu for which to get the parent entry.
Return value
( SDL_TrayEntry
*) Returns the parent entry, or NULL if this menu is not a submenu.
Thread safety
This function should be called on the thread that created the tray.