sdlDestroyTray function tray

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.

\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_CreateTray

extern SDL_DECLSPEC void SDLCALL SDL_DestroyTray(SDL_Tray *tray)

Implementation

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