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 be NULL if 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 be NULL, 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