SDL_SetWindowMinimumSize(3)
π SDL_SetWindowMinimumSize π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages β¨ this one's from the SDL3 manual set and it's genuinely such a vibe. sit down, grab a strawberry π, we're gonna talk about how tiny you're allowed to make a window.
πΈ NAME πΈ
SDL_SetWindowMinimumSize β sets the minimum size of a window's client area. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_video.h>
bool SDL_SetWindowMinimumSize(SDL_Window *window, int min_w, int min_h);
π FUNCTION PARAMETERS π
windowβ the window you wanna change. yes, that window. the one you've been staring at. πmin_wβ the minimum width of the window, or0for no limit. zero means "idc, go feral", no cap.min_hβ the minimum height of the window, or0for no limit. same energy, vertical edition π¦
π« RETURN VALUE π«
returns true on success or false on failure. and if it fails? call SDL_GetError() for more information, she'll tell you what went wrong π«Ά
π§΅ THREAD SAFETY π§΅
this function should only be called on the main thread. like, main character energy only, periodt. do not try her anywhere else, she will not answer π
π AVAILABILITY π
this function is available since SDL 3.2.0 β so if you're on something older, bestie, it's not you, it's the version.
π SEE ALSO π
SDL_GetWindowMinimumSize(3)β the lil sibling who reads it back to you πSDL_SetWindowMaximumSize(3)β the other half of the vibe check, the ceiling to your floor π₯
okay that's the whole page, you ate that fr fr π β¨
and a lil sign-off from your girl: this was served up by the Simple Directmedia Layer crew, from SDL 3.4.18, dated SDL_SetWindowMinimumSize(3) β stay iconic, keep your windows from shrinking into the void, mwah πππ¦πΈ
π¦ 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