SDL_SetTrayEntryEnabled(3)
π SDL_SetTrayEntryEnabled π
okay bestie, welcome to the SDL_SetTrayEntryEnabled(3) page β yes it's from the SDL3 FUNCTIONS collection, and yes it's exactly what it sounds like. we're toggling tray entries on and off and we're gonna be so normal about it π
β¨ NAME β¨
SDL_SetTrayEntryEnabled β sets whether or not an entry is enabled.
like. that's the whole job. one little bool. one little vibe. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_tray.h>
void SDL_SetTrayEntryEnabled(SDL_TrayEntry *entry, bool enabled);
no return value, no drama, just a void and a dream β¨
π¦ FUNCTION PARAMETERS π¦
entryβ the entry to be updated. your lil guy. the one you're about to hit with the on/off beam πenabledβtrueif the entry should be enabled;falseotherwise. literally just pick one, queen π
π THREAD SAFETY π
this function should be called on the thread that created the tray. no cap. not a suggestion, not a "eh probably fine" β the creating thread. don't be out here calling it from some random thread and then acting surprised π
β AVAILABILITY β
this function is available since SDL 3.2.0. so if you're on something older... yeah, no. it's giving "upgrade era" π§
π SEE ALSO π
iykyk π«Ά
and that's the whole page!! this one's from Simple Directmedia Layer, version SDL 3.4.18 β mwah, iconic, no notes πβ¨π
π¦ 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