sdlSetTrayEntryEnabled function tray

void sdlSetTrayEntryEnabled(
  1. Pointer<SdlTrayEntry> entry,
  2. bool enabled
)

Sets whether or not an entry is enabled.

\param entry the entry to be updated. \param enabled true if the entry should be enabled; false otherwise.

\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_GetTrayEntries \sa SDL_InsertTrayEntryAt \sa SDL_GetTrayEntryEnabled

extern SDL_DECLSPEC void SDLCALL SDL_SetTrayEntryEnabled(SDL_TrayEntry *entry, bool enabled)

Implementation

void sdlSetTrayEntryEnabled(Pointer<SdlTrayEntry> entry, bool enabled) {
  final sdlSetTrayEntryEnabledLookupFunction = _libSdl
      .lookupFunction<
        Void Function(Pointer<SdlTrayEntry> entry, Uint8 enabled),
        void Function(Pointer<SdlTrayEntry> entry, int enabled)
      >('SDL_SetTrayEntryEnabled');
  return sdlSetTrayEntryEnabledLookupFunction(entry, enabled ? 1 : 0);
}