SDL_HideWindow(3)
π SDL_HideWindow β hide a window, bestie π
okay so real talk: this is a page out of the SDL3 FUNCTIONS manual, and it's about the little function that makes a window go bye-bye (visually, at least). No cap. Let's get into it.
β¨ NAME β¨
SDL_HideWindow β Hide a window. That's it. That's the whole job. She's a one-trick pony and she ate. π
π SYNOPSIS π
#include <SDL3/SDL_video.h>
bool SDL_HideWindow(SDL_Window *window);
the way that you just include the header and call her. Iconic. π¦
πΈ FUNCTION PARAMETERS πΈ
windowβ the window to hide. Like, the actual window you want to disappear. Hand her over and she's gone. π«₯
β RETURN VALUE β
Returns true on success or false on failure β and if it's a flop, pls pls pls call SDL_GetError() for more information. She will tell you what went wrong, she's not gonna gatekeep. π
π§ THREAD SAFETY π§
β οΈ bestie. LISTEN. This function should only be called on the main thread. Do not be out here calling her from some random worker thread. She is main character energy only, and that means the main thread. Periodt. π
π AVAILABILITY π
This function is available since SDL 3.2.0. So if you're on something older, sorry babe, no window-hiding for you. π
π₯ SEE ALSO π₯
SDL_ShowWindow(3)β the opposite queen, brings her back πSDL_WINDOW_HIDDEN(3)β the flag that says "yeah she's hidden" πΈ
and that's the whole vibe check, fr fr. This lil' page came to you straight from the Simple Directmedia Layer girlies, shipped as part of SDL 3.4.18. Go hide a window, slay, and remember: main thread only. bye bestie!! πβ¨ππ¦πΈπ π«Ά
π¦ 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