SDL_GetTrayEntryChecked(3)

πŸ’– NAME πŸ’–

SDL_GetTrayEntryChecked β€” bestie, this one just tells you whether or not an entry is checked. that's it. that's the whole vibe. ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_tray.h>

bool SDL_GetTrayEntryChecked(SDL_TrayEntry *entry);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea 🍡 β€” this function peeks at a tray entry and reports back whether it's checked or not.

⚠️ real talk though: the entry you hand over must have been created with the SDL_TRAYENTRY_CHECKBOX flag. like, that's not optional, that's the whole prerequisite. no checkbox flag, no check to get. periodt. πŸ’…

🌸 FUNCTION PARAMETERS 🌸

  • entry β€” the entry to be read. that's the one you're checking on, girl. πŸ‘€

✨ RETURN VALUE ✨

Returns true if the entry is checked, and false otherwise. simple as that, no plot twist. πŸ’€


🧚 THREAD SAFETY 🧚

This function should be called on the thread that created the tray. no hopping threads on this one, she likes her original home thread, iykyk. 🫢


🌈 AVAILABILITY 🌈

This function is available since SDL 3.2.0. so if you're on anything older, respectfully… it's not there yet. 😭


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! πŸ’– this was brought to you by Simple Directmedia Layer, living in the SDL 3.4.18 era, dated right there in the SDL_GetTrayEntryChecked(3) footer β€” go forth and check those boxes, you main character πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from