al_set_new...w_position(3)
π 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 β¨
al_get_new_window_position(3)β go check the getter twin, iykyk π
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