al_set_new...w_position(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’… al_set_new...w_position(3) πŸ’…

okay so this iconic little page is from the Library Functions Manual, and it’s literally the Allegro 5 API, bestie. no cap. 🫢

✨ NAME ✨

al_set_new_window_position β€” Allegro 5 API. that’s the whole name vibe πŸ’–

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_set_new_window_position(int x, int y)

✨ DESCRIPTION ✨

So what does it do? It sets where the top left pixel of the client area of newly created windows will be on screen. Important: these are non-fullscreen windows, bestie. And it applies to displays created by the calling thread β€” like, the thread that calls this is the one whose new displays get the coordinates. πŸ’…

Negative values are allowed on some multihead systems. yep, sometimes the screen setup is giving multi-monitor chaos and negatives are valid. 🌈

To reset back to the default behaviour, pass (INT_MAX, INT_MAX). literally that’s the reset button, no extra steps. ✨

✨ SEE ALSO ✨


that’s the whole page, bestie πŸ’– cute sign-off from the Allegro reference manual β€” that’s the source/version line right there, and no specific date is printed on this page. πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms