sdlSetTrayEntryEnabled function

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 SDL_TRUE if the entry should be enabled; SDL_FALSE otherwise.

\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 = libSdl3.lookupFunction<
      Void Function(Pointer<SdlTrayEntry> entry, Uint8 enabled),
      void Function(
          Pointer<SdlTrayEntry> entry, int enabled)>('SDL_SetTrayEntryEnabled');
  return sdlSetTrayEntryEnabledLookupFunction(entry, enabled ? 1 : 0);
}