SDL_UpdateTrays(3)
π SDL_UpdateTrays π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, this one's short and sweet, let's go β¨
πΈ NAME πΈ
SDL_UpdateTrays β it updates the trays, periodt π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_tray.h>
void SDL_UpdateTrays(void);
that's it. that's the whole thing. no args, no return value, just vibes β¨
π DESCRIPTION π
so like, this is called automatically by the event loop, bestie. the event loop is doing it for you already, main character energy fr fr π
you only need to call it yourself if you're using trays but you're not handling SDL events. that's the one and only situation. iykyk π
π§ THREAD SAFETY π§
π¨ okay this one matters: this function should only be called on the main thread. do not try it anywhere else, no cap. π
β AVAILABILITY β
this function is available since SDL 3.2.0 π«Ά so if you're on anything older, it's giving nothing, sorry babe πΈ
and that's the whole page, diva π this cutie lives in the Simple Directmedia Layer manual, and the page itself is from SDL 3.4.18 β so if you're reading this version, you're on the good stuff β go update your trays, ily, bye ππ¦β¨
π¦ 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