sdlGetTrayEntryChecked function
Gets whether or not an entry is checked.
The entry must have been created with the SDL_TRAYENTRY_CHECKBOX flag.
\param entry the entry to be read. \returns SDL_TRUE if the entry is checked; SDL_FALSE otherwise.
\since This function is available since SDL 3.2.0.
\sa SDL_GetTrayEntries \sa SDL_InsertTrayEntryAt \sa SDL_SetTrayEntryChecked
extern SDL_DECLSPEC bool SDLCALL SDL_GetTrayEntryChecked(SDL_TrayEntry *entry)
Implementation
bool sdlGetTrayEntryChecked(Pointer<SdlTrayEntry> entry) {
final sdlGetTrayEntryCheckedLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlTrayEntry> entry),
int Function(Pointer<SdlTrayEntry> entry)>('SDL_GetTrayEntryChecked');
return sdlGetTrayEntryCheckedLookupFunction(entry) == 1;
}