SDL Wiki
(This is the documentation for SDL3, which is the current stable version. SDL2 was the previous version!)

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.

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.