SDL_GetTrayMenuParentEntry - Man Page

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

Synopsis

#include <SDL3/SDL_tray.h>

SDL_TrayEntry * SDL_GetTrayMenuParentEntry(SDL_TrayMenu *menu);

Description

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

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.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_CreateTraySubmenu(3), SDL_GetTrayMenuParentTray(3)

Referenced By

SDL_CreateTraySubmenu(3), SDL_GetTrayMenuParentTray(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS