sdlGetTrayEntryParent function

Pointer<SdlTrayMenu> sdlGetTrayEntryParent(
  1. Pointer<SdlTrayEntry> entry
)

Gets the menu contianing a certain tray entry.

\param entry the entry for which to get the parent menu. \returns the parent menu.

\since This function is available since SDL 3.2.0.

\sa SDL_InsertTrayEntryAt

extern SDL_DECLSPEC SDL_TrayMenu *SDLCALL SDL_GetTrayEntryParent(SDL_TrayEntry *entry)

Implementation

Pointer<SdlTrayMenu> sdlGetTrayEntryParent(Pointer<SdlTrayEntry> entry) {
  final sdlGetTrayEntryParentLookupFunction = libSdl3.lookupFunction<
      Pointer<SdlTrayMenu> Function(Pointer<SdlTrayEntry> entry),
      Pointer<SdlTrayMenu> Function(
          Pointer<SdlTrayEntry> entry)>('SDL_GetTrayEntryParent');
  return sdlGetTrayEntryParentLookupFunction(entry);
}