sdlGetTrayEntryEnabled function tray

bool sdlGetTrayEntryEnabled(
  1. Pointer<SdlTrayEntry> entry
)

Gets whether or not an entry is enabled.

\param entry the entry to be read. \returns true if the entry is 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_SetTrayEntryEnabled

extern SDL_DECLSPEC bool SDLCALL SDL_GetTrayEntryEnabled(SDL_TrayEntry *entry)

Implementation

bool sdlGetTrayEntryEnabled(Pointer<SdlTrayEntry> entry) {
  final sdlGetTrayEntryEnabledLookupFunction = _libSdl
      .lookupFunction<
        Uint8 Function(Pointer<SdlTrayEntry> entry),
        int Function(Pointer<SdlTrayEntry> entry)
      >('SDL_GetTrayEntryEnabled');
  return sdlGetTrayEntryEnabledLookupFunction(entry) == 1;
}