SDL_GetWindowMinimumSize(3)
π SDL_GetWindowMinimumSize(3) π
okay bestie so this is a page from the SDL3 FUNCTIONS section of the Simple Directmedia Layer manual, and it's literally just about peeking at how tiny you're allowed to make a window's client area. no cap. π¦
β¨ NAME β¨
SDL_GetWindowMinimumSize β get the minimum size of a window's client area. like, the floor. the "you shall not shrink past this" line. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
bool SDL_GetWindowMinimumSize(SDL_Window *window, int *w, int *h);
π FUNCTION PARAMETERS π
windowβ the window to query. this is the one you're snooping on, bestie. πwβ a pointer filled in with the minimum width of the window. it may beNULL, and honestly? valid. sometimes u just don't care about the width. πhβ a pointer filled in with the minimum height of the window. may also beNULL. same energy. no pressure. π«Ά
β RETURN VALUE β
returns true on success or false on failure. if it flops, call SDL_GetError() for more information β she will tell you exactly what went wrong, periodt. π
π§ THREAD SAFETY π§
bestie. listen. this function should only be called on the main thread. do not get cute with it. do not try to be the main character on a worker thread. main thread only, fr fr. π
π AVAILABILITY π
this function is available since SDL 3.2.0. iconic behavior honestly. π
π₯ SEE ALSO π₯
SDL_GetWindowMaximumSize(3)β the other end of the vibe check, the ceiling. β¬οΈSDL_SetWindowMinimumSize(3)β if you wanna set the floor instead of just reading it. slay. β¨
and that's the whole page, bestie!! Simple Directmedia Layer, version SDL 3.4.18, page SDL_GetWindowMinimumSize(3). go forth and query those minimums responsibly, ily, 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