SDL Wiki

SDL_GetTrayMenuParentEntry

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>

Syntax

SDL_TrayEntry * SDL_GetTrayMenuParentEntry(SDL_TrayMenu *menu);

Function Parameters

SDL_TrayMenu * 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.

Remarks

Either this function or SDL_GetTrayMenuParentTray() will return non-NULL for any given menu.

Thread Safety

This function should be called on the thread that created the tray.

Version

This function is available since SDL 3.2.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryTray


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.