SDL_RemoveTrayEntry(3)

πŸ’– SDL_RemoveTrayEntry πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_RemoveTrayEntry(3) πŸŽ€ she's a lil void function with one job and she does it flawlessly, no cap.


✨ NAME ✨

SDL_RemoveTrayEntry β€” removes a tray entry. that's it. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_tray.h>

void SDL_RemoveTrayEntry(SDL_TrayEntry *entry);

look at her. void, so she gives you nothing back β€” not even a status code, not even a lil bool. she just Does The Thing. πŸ’…


πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • entry β€” the entry to be deleted. like, the tray entry you want gone-gone, poof, bye. 🫢

🧚 THREAD SAFETY 🧚

okay this is the part where you gotta pay attention, fr fr: this function should be called on the thread that created the tray. yes, that thread. the one that made the tray in the first place. don't be out here calling it from some random other thread and acting surprised, i'm literally begging. 😭


⭐ AVAILABILITY ⭐

this function is available since SDL 3.2.0. so if you're on anything older, she is simply not there for you, sorry bestie. 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

iykyk β€” go read those too, they're the rest of the tray-entry friend group and they ate. πŸ”₯


Simple Directmedia Layer, SDL 3.4.18, and yes this lil page is signed off by SDL_RemoveTrayEntry(3) herself β€” she said periodt, delete the entry, and go touch grass. πŸ“πŸ’œ

πŸ“¦ where this page comes from