SDL_WINDOWPOS_CENTERED_MASK(3)
π SDL_WINDOWPOS_CENTERED_MASK π
okay bestie, welcome to the SDL_WINDOWPOS_CENTERED_MASK(3) page from the SDL3 FUNCTIONS manual β yes it's a whole page for one little magic number and honestly? iconic. it's giving "small but powerful" and we're obsessed. π
β¨ NAME β¨
SDL_WINDOWPOS_CENTERED_MASK β a magic value used with SDL_WINDOWPOS_CENTERED. fr fr, that's the whole vibe. πͺ
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_video.h>
#define SDL_WINDOWPOS_CENTERED_MASK 0x2FFF0000u
like, look at it. one define. one gorgeous hex number. 0x2FFF0000u. no notes. π
π¦ DESCRIPTION π¦
so here's the tea: generally this macro isn't used directly, bestie. you don't just raw-dog SDL_WINDOWPOS_CENTERED_MASK into your code like it's nothing.
instead, it gets used through SDL_WINDOWPOS_CENTERED or SDL_WINDOWPOS_CENTERED_DISPLAY. that's the whole point of it β it's the magic sauce hiding behind the scenes so those two can do their little centering thing. main character energy from a background character, we love to see it. β¨
lowkey important: this is a "behind the curtain" value, not a "type it yourself" value. respect the lore. π
π AVAILABILITY π
this macro is available since SDL 3.2.0. so if you're on anything older, sorry babe, it's not gonna show up for you. π
π«Ά SEE ALSO π«Ά
SDL_SetWindowPosition(3)β go read this one too, it's the bestie of this whole situation. π
and that's the page!! π this little slice of the docs comes to you from Simple Directmedia Layer, SDL 3.4.18, and the footer didn't hand us a date so we're just gonna blow a kiss to the version number instead. mwah. ππ¦β¨
π¦ 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