al_get_new_window_position(3alleg5)
π NAME π
ok so bestie, this is al_get_new_window_position β the Allegro 5 API function that tells you where your new windows are gonna pop up πβ¨ (part of the Allegro 5 API, iykyk)
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_get_new_window_position(int *x, int *y)
πΈ DESCRIPTION πΈ
okay so listen π«Ά β this one gets the position where new non-fullscreen displays created by the calling thread are gonna be placed. that's it, that's the whole vibe π
like, it's the lil peek behind the curtain that tells you where stuff's gonna land before it lands. not fullscreen, obviously β fullscreen is giving "i take over the whole screen, no thoughts" π β this is about the windowed girlies π
you hand it two pointers, *x and *y, and it fills in the position for you. no cap, no drama, just coordinates β¨
not me gently reminding you that it's per-thread, bestie π§ β it's the position for displays created by the calling thread, not everybody's. okay periodt π
π¦ SEE ALSO π¦
al_set_new_window_position(3alleg5)β the setter to this getter, the other half of the iconic duo ππ₯
and that's the whole page, babe π slay, you read a manpage, we love that for you π β¨
β from the Allegro reference manual, al_get_new_window_position(3alleg5) era π bye bestie, go position some windows π¦π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms