sdlDestroyTray function

void sdlDestroyTray(
  1. Pointer<SdlTray> tray
)

Destroys a tray object.

This also destroys all associated menus and entries.

\param tray the tray icon to be destroyed.

\since This function is available since SDL 3.2.0.

\sa SDL_CreateTray

extern SDL_DECLSPEC void SDLCALL SDL_DestroyTray(SDL_Tray *tray)

Implementation

void sdlDestroyTray(Pointer<SdlTray> tray) {
  final sdlDestroyTrayLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlTray> tray),
      void Function(Pointer<SdlTray> tray)>('SDL_DestroyTray');
  return sdlDestroyTrayLookupFunction(tray);
}