plucky (3) SDL_GetTrayMenuParentTray.3.gz

NAME
SDL_GetTrayMenuParentTray - Gets the tray for which this menu is the first-level menu, if the current menu isn't a submenu.
HEADER FILE
Defined in SDL3/SDL_tray.h
SYNOPSIS
#include "SDL3/SDL.h" SDL_Tray * SDL_GetTrayMenuParentTray(SDL_TrayMenu *menu);
DESCRIPTION
Either this function or SDL_GetTrayMenuParentEntry () will return non-NULL for any given menu.
FUNCTION PARAMETERS
menu the menu for which to get the parent enttrayry.
RETURN VALUE
( SDL_Tray *) Returns the parent tray, or NULL if this menu is a submenu.
THREAD SAFETY
This function should be called on the thread that created the tray.
AVAILABILITY
This function is available since SDL 3.2.0.
SEE ALSO
•(3), SDL_CreateTrayMenu(3), •(3), SDL_GetTrayMenuParentEntry(3)