Ubuntu Manpages

SDL_SetTrayEntryChecked

Sets whether or not an entry is checked.

#include <SDL3/SDL_tray.h>
void SDL_SetTrayEntryChecked(SDL_TrayEntry *entry, bool checked);

The entry must have been created with the SDL_TRAYENTRY_CHECKBOX flag.

the entry to be updated.
true if the entry should be checked; false otherwise.

This function should be called on the thread that created the tray.

This function is available since SDL 3.2.0.

SDL_GetTrayEntries(3), SDL_InsertTrayEntryAt(3), SDL_GetTrayEntryChecked(3)