SDL_GetTrayMenuParentEntry - Man Page

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

Header File

Defined in SDL3/SDL_tray.h

Synopsis

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

( SDL_TrayEntry
*) 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

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

Referenced By

SDL_CreateTraySubmenu(3), SDL_GetTrayMenuParentTray(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS