sdlSetTrayEntryChecked function
Sets 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 updated. \param checked SDL_TRUE if the entry should be checked; SDL_FALSE otherwise.
\since This function is available since SDL 3.2.0.
\sa SDL_GetTrayEntries \sa SDL_InsertTrayEntryAt \sa SDL_GetTrayEntryChecked
extern SDL_DECLSPEC void SDLCALL SDL_SetTrayEntryChecked(SDL_TrayEntry *entry, bool checked)
Implementation
void sdlSetTrayEntryChecked(Pointer<SdlTrayEntry> entry, bool checked) {
final sdlSetTrayEntryCheckedLookupFunction = libSdl3.lookupFunction<
Void Function(Pointer<SdlTrayEntry> entry, Uint8 checked),
void Function(
Pointer<SdlTrayEntry> entry, int checked)>('SDL_SetTrayEntryChecked');
return sdlSetTrayEntryCheckedLookupFunction(entry, checked ? 1 : 0);
}