sdlGetTrayEntryEnabled function
Gets whether or not an entry is enabled.
\param entry the entry to be read. \returns SDL_TRUE if the entry is enabled; SDL_FALSE otherwise.
\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 = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlTrayEntry> entry),
int Function(Pointer<SdlTrayEntry> entry)>('SDL_GetTrayEntryEnabled');
return sdlGetTrayEntryEnabledLookupFunction(entry) == 1;
}