SDL_SetWindowMaximumSize(3)
π SDL_SetWindowMaximumSize(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages, where we're talking about SDL_SetWindowMaximumSize β literally the glow-up that stops your window from getting too big for its own good π
β¨ NAME β¨
SDL_SetWindowMaximumSize β set the maximum size of a window's client area. like, the ceiling. the limit. the "no ma'am, you may not grow past this" line π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
bool SDL_SetWindowMaximumSize(SDL_Window *window, int max_w, int max_h);
π¦ FUNCTION PARAMETERS π¦
windowβ the window to change. yes, this one. the one you're pointing at π«Άmax_wβ the maximum width of the window, or0for no limit. zero means "go wild, no cap" πmax_hβ the maximum height of the window, or0for no limit. same energy, vertical edition β¨
π RETURN VALUE π
Returns true on success or false on failure. and if it flops? call SDL_GetError() for more info, because she will absolutely tell you what went wrong π
π§ THREAD SAFETY π§
This function should only be called on the main thread. no side-quests, no other threads, main character energy only π
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on something older... not me being unsupported π
π SEE ALSO π
okay that's the whole page, you ate it, slay π mwah! this came to you courtesy of Simple Directmedia Layer, version SDL 3.4.18, and yes the man page header/footer are doing their little dance down there but we folded them in nicely. bye bestie, go set some maximums πβ¨π¦
π¦ 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