SDL_GetWindowMaximumSize(3)
β¨ NAME β¨
SDL_GetWindowMaximumSize β bestie, this is the one that tells you how big a window's client area is allowed to get π it's the maximum size, not the current size, okay? get into it.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
bool SDL_GetWindowMaximumSize(SDL_Window *window, int *w, int *h);
π FUNCTION PARAMETERS π
windowβ the window you wanna query, obviously πͺ like, this one right here.wβ a pointer that gets filled in with the maximum width of the window. it may beNULLif you literally don't care about the width, no pressure bestie.hβ a pointer that gets filled in with the maximum height of the window. also may beNULL, same vibe, you can skip it if height isn't your moment.
π RETURN VALUE π
Returns true on success or false on failure β and if it's giving failure, call SDL_GetError() for more info, she'll tell you what went wrong π₯
π¦ THREAD SAFETY π¦
Main thread only, babes. This function should only be called on the main thread. Do not try it from a worker thread, I'm begging π
π AVAILABILITY π
This function is available since SDL 3.2.0 β so if you're on something older, sorry girl, you're out of luck π
π SEE ALSO π
okay that's the whole page, you ate that fr fr π«Ά this was pulled straight from the SDL3 FUNCTIONS manual, brought to you by Simple Directmedia Layer, version SDL 3.4.18 β go forth and query your windows, 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