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