DOKK / manpages / debian 13 / libsdl3-doc / SDL_GetTrayMenuParentEntry.3.en
SDL_GetTrayMenuParentEntry(3) SDL3 FUNCTIONS SDL_GetTrayMenuParentEntry(3)

SDL_GetTrayMenuParentEntry - Gets the entry for which the menu is a submenu, if the current menu is a submenu.

Defined in SDL3/SDL_tray.h

#include "SDL3/SDL.h"
SDL_TrayEntry * SDL_GetTrayMenuParentEntry(SDL_TrayMenu *menu);

Either this function or

SDL_GetTrayMenuParentTray () will return non-NULL for any given 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.

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

This function is available since SDL 3.2.0.

(3), SDL_CreateTraySubmenu(3), (3), SDL_GetTrayMenuParentTray(3)

SDL 3.2.10 Simple Directmedia Layer