sdlSetTrayEntryChecked function tray
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 true if the entry should be checked; 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_GetTrayEntryChecked
extern SDL_DECLSPEC void SDLCALL SDL_SetTrayEntryChecked(SDL_TrayEntry *entry, bool checked)
Implementation
void sdlSetTrayEntryChecked(Pointer<SdlTrayEntry> entry, bool checked) {
final sdlSetTrayEntryCheckedLookupFunction = _libSdl
.lookupFunction<
Void Function(Pointer<SdlTrayEntry> entry, Uint8 checked),
void Function(Pointer<SdlTrayEntry> entry, int checked)
>('SDL_SetTrayEntryChecked');
return sdlSetTrayEntryCheckedLookupFunction(entry, checked ? 1 : 0);
}