SDL_GetTrayMenuParentTray - Man Page

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

Synopsis

#include <SDL3/SDL_tray.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

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

SDL_CreateTrayMenu(3), SDL_GetTrayMenuParentEntry(3)

Referenced By

SDL_CreateTrayMenu(3), SDL_GetTrayMenuParentEntry(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS