SDL_GetTrayEntryEnabled(3)
π SDL_GetTrayEntryEnabled π
okay bestie, so this one is from the SDL3 FUNCTIONS collection (you already knew that from the header, but let's set the scene β¨) β it's the little function that answers the question every tray icon has been dying to ask: is this menu entry actually clickable right now or is it giving greyed-out sad girl? π
πΈ NAME πΈ
SDL_GetTrayEntryEnabled β literally just tells you whether an entry is enabled or not. no cap.
β¨ SYNOPSIS β¨
#include <SDL3/SDL_tray.h>
bool SDL_GetTrayEntryEnabled(SDL_TrayEntry *entry);
like, that's it. one include, one call, one bool coming back at you π
π«Ά FUNCTION PARAMETERS π«Ά
entryβ the entry you want read. that's the whole assignment bestie, just hand over the entry and we'll vibe check it.
π RETURN VALUE π
Returns true if the entry is enabled; false otherwise.
so like, true = it's live and clickable, false = it's in its quiet era π. periodt.
π§ THREAD SAFETY π§
This function should be called on the thread that created the tray.
fr fr, do not be out here calling this from a random thread, the tray wants to talk to the thread that birthed it and nobody else. main character energy only. π
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on something older, it's giving nothing, upgrade babe β
π₯ SEE ALSO π₯
the whole tray-entry friend group, go say hi π¦
Simple Directmedia Layer made this, it's SDL 3.4.18, and yes this is the end of the page bestie β ty for reading, go enable some tray entries, mwah ππ β¨
π¦ 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