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β theSDL_DisplayIDof 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 π
SDL_SetWindowPosition(3)β go read that one next, it's giving β¨relatedβ¨
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
- 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