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 be NULL, 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 be NULL. 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 πŸ”₯


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