sdlGetTraySubmenu function
Gets a previously created tray entry submenu.
You should have called SDL_CreateTraySubenu() on the entry object. This function allows you to fetch it again later.
This function does the same thing as SDL_GetTrayMenu(), except that it takes a SDL_TrayEntry instead of a SDL_Tray.
A menu does not need to be destroyed; it will be destroyed with the tray.
\param entry the tray entry to bind the menu to. \returns the newly created menu.
\since This function is available since SDL 3.2.0.
\sa SDL_InsertTrayEntryAt \sa SDL_CreateTraySubmenu
extern SDL_DECLSPEC SDL_TrayMenu *SDLCALL SDL_GetTraySubmenu(SDL_TrayEntry *entry)
Implementation
Pointer<SdlTrayMenu> sdlGetTraySubmenu(Pointer<SdlTrayEntry> entry) {
final sdlGetTraySubmenuLookupFunction = libSdl3.lookupFunction<
Pointer<SdlTrayMenu> Function(Pointer<SdlTrayEntry> entry),
Pointer<SdlTrayMenu> Function(
Pointer<SdlTrayEntry> entry)>('SDL_GetTraySubmenu');
return sdlGetTraySubmenuLookupFunction(entry);
}