sdlGetTrayEntryParent function tray

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

Gets the menu containing a certain tray entry.

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

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

\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 = _libSdl
      .lookupFunction<
        Pointer<SdlTrayMenu> Function(Pointer<SdlTrayEntry> entry),
        Pointer<SdlTrayMenu> Function(Pointer<SdlTrayEntry> entry)
      >('SDL_GetTrayEntryParent');
  return sdlGetTrayEntryParentLookupFunction(entry);
}