SDL_SetTrayEntryChecked(3)
β¨ NAME β¨
SDL_SetTrayEntryChecked β bestie, this is the one that ticks the little checkbox in your system tray π it sets whether or not an entry is checked.
(also hello, you're reading a page from the SDL3 FUNCTIONS collection, in case the vibe check needed confirming π«Ά)
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_tray.h>
void SDL_SetTrayEntryChecked(SDL_TrayEntry *entry, bool checked);
π DESCRIPTION π
So likeβ¦ this function flips the checked-ness of a tray entry. Checked? Not checked? You decide, queen π
β οΈ Okay but listen: the entry must have been created with the SDL_TRAYENTRY_CHECKBOX flag. If it wasn't, this is not the function for you, no cap. Only checkbox entries get to be checked π
π¦ FUNCTION PARAMETERS π¦
entryβ the entry to be updated. That's the little guy getting its glow-up β¨checkedβtrueif the entry should be checked;falseotherwise. Binary. Iconic. That's it, that's the choice π
π THREAD SAFETY π
This function should be called on the thread that created the tray. Like, the tray has a home thread and it gets separation anxiety, so don't go calling this from somewhere else π same thread, always π«Ά
β AVAILABILITY β
This function is available since SDL 3.2.0. If you're on something older, it's giving "not yet, babe" π
π₯ SEE ALSO π₯
okay that's the whole page, you ate that reading session fr fr π this was brought to you by the Simple Directmedia Layer girlies, SDL 3.4.18 edition, dated whenever this shipped bestie π go forth and check those boxes, main character πΈπ¦π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms