SDL_SetWindowMinimumSize(3)

πŸ’– SDL_SetWindowMinimumSize πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages ✨ this one's from the SDL3 manual set and it's genuinely such a vibe. sit down, grab a strawberry πŸ“, we're gonna talk about how tiny you're allowed to make a window.


🌸 NAME 🌸

SDL_SetWindowMinimumSize β€” sets the minimum size of a window's client area. that's it, that's the whole job, and she does it flawlessly πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_video.h>

bool SDL_SetWindowMinimumSize(SDL_Window *window, int min_w, int min_h);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • window β€” the window you wanna change. yes, that window. the one you've been staring at. πŸ‘€
  • min_w β€” the minimum width of the window, or 0 for no limit. zero means "idc, go feral", no cap.
  • min_h β€” the minimum height of the window, or 0 for no limit. same energy, vertical edition πŸ¦‹

πŸ’« RETURN VALUE πŸ’«

returns true on success or false on failure. and if it fails? call SDL_GetError() for more information, she'll tell you what went wrong 🫢


🧡 THREAD SAFETY 🧡

this function should only be called on the main thread. like, main character energy only, periodt. do not try her anywhere else, she will not answer πŸ’€

🌈 AVAILABILITY 🌈

this function is available since SDL 3.2.0 ⭐ so if you're on something older, bestie, it's not you, it's the version.


πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole page, you ate that fr fr πŸ’…βœ¨

and a lil sign-off from your girl: this was served up by the Simple Directmedia Layer crew, from SDL 3.4.18, dated SDL_SetWindowMinimumSize(3) β€” stay iconic, keep your windows from shrinking into the void, mwah πŸ’–πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from