SDL_WINDOWPO...FINED_DISPLAY(3)

πŸ’– NAME πŸ’–

SDL_WINDOWPOS_UNDEFINED_DISPLAY β€” the lil macro you use when you genuinely do not care where your window ends up. Like, position? Never heard of her. Bestie just wants the window somewhere and we're all at peace with that. ✨


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_video.h>

#define SDL_WINDOWPOS_UNDEFINED_DISPLAY(X)  (SDL_WINDOWPOS_UNDEFINED_MASK|(X))

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: you pass in a display and you're basically telling SDL "put it wherever, I trust you, main character energy, no notes." πŸ’…

And if you really don't care β€” like, really don't care, not even a little β€” then SDL_WINDOWPOS_UNDEFINED is the exact same thing, except it always uses the primary display instead of you specifying one. Same energy, zero decisions on your part. Iconic.


πŸŽ€ MACRO PARAMETERS πŸŽ€

  • X β€” the SDL_DisplayID of the display to use. That's the one. The chosen one. πŸ‘‘

⭐ AVAILABILITY ⭐

This macro has been available since SDL 3.2.0. If you're on anything older, sorry babe, she's not there yet. 😭


πŸ’œ SEE ALSO πŸ’œ


okay that's the whole page, and honestly? ate. no crumbs. 🫢

This little love letter to window positioning comes to you from Simple Directmedia Layer 🧚, living in SDL 3.4.18, page name SDL_WINDOWPOS_UNDEFINED_DISPLAY(3), filed under SDL3 FUNCTIONS. Take care of her, she's doing her best. πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from