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

SDL_GetTrayMenuParentTray - Gets the tray for which this menu is the first-level menu, if the current menu isn't a submenu.

Defined in SDL3/SDL_tray.h

#include "SDL3/SDL.h"
SDL_Tray * SDL_GetTrayMenuParentTray(SDL_TrayMenu *menu);

Either this function or

SDL_GetTrayMenuParentEntry () will return non-NULL for any given menu.

the menu for which to get the parent enttrayry.

( SDL_Tray
*) Returns the parent tray, or NULL if this menu is 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_CreateTrayMenu(3), (3), SDL_GetTrayMenuParentEntry(3)

SDL 3.2.10 Simple Directmedia Layer