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 β€” true if the entry should be enabled; false otherwise. 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