al_get_new_window_position(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸ¦‹


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