sdlGetTrayMenuParentEntry function
Gets the entry for which the menu is a submenu, if the current menu is a submenu.
Either this function or SDL_GetTrayMenuParentTray() will return non-NULL for any given menu.
\param menu the menu for which to get the parent entry. \returns the parent entry, or NULL if this menu is not a submenu.
\since This function is available since SDL 3.2.0.
\sa SDL_CreateTraySubmenu \sa SDL_GetTrayMenuParentTray
extern SDL_DECLSPEC SDL_TrayEntry *SDLCALL SDL_GetTrayMenuParentEntry(SDL_TrayMenu *menu)
Implementation
Pointer<SdlTrayEntry> sdlGetTrayMenuParentEntry(Pointer<SdlTrayMenu> menu) {
final sdlGetTrayMenuParentEntryLookupFunction = libSdl3.lookupFunction<
Pointer<SdlTrayEntry> Function(Pointer<SdlTrayMenu> menu),
Pointer<SdlTrayEntry> Function(
Pointer<SdlTrayMenu> menu)>('SDL_GetTrayMenuParentEntry');
return sdlGetTrayMenuParentEntryLookupFunction(menu);
}