sdlGetTrayEntries function

Pointer<Pointer<SdlTrayEntry>> sdlGetTrayEntries(
  1. Pointer<SdlTrayMenu> menu,
  2. Pointer<Int32> size
)

Returns a list of entries in the menu, in order.

\param menu The menu to get entries from. \param size An optional pointer to obtain the number of entries in the menu. \returns the entries within the given menu. The pointer becomes invalid when any function that inserts or deletes entries in the menu is called.

\since This function is available since SDL 3.2.0.

\sa SDL_RemoveTrayEntry \sa SDL_InsertTrayEntryAt

extern SDL_DECLSPEC const SDL_TrayEntry **SDLCALL SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)

Implementation

Pointer<Pointer<SdlTrayEntry>> sdlGetTrayEntries(
    Pointer<SdlTrayMenu> menu, Pointer<Int32> size) {
  final sdlGetTrayEntriesLookupFunction = libSdl3.lookupFunction<
      Pointer<Pointer<SdlTrayEntry>> Function(
          Pointer<SdlTrayMenu> menu, Pointer<Int32> size),
      Pointer<Pointer<SdlTrayEntry>> Function(Pointer<SdlTrayMenu> menu,
          Pointer<Int32> size)>('SDL_GetTrayEntries');
  return sdlGetTrayEntriesLookupFunction(menu, size);
}