al_set_new_window_position(3alleg5)

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

πŸŽ€ NAME πŸŽ€

okay so bestie, this page is al_set_new_window_position(3alleg5) from the Allegro 5 API ✨ and it's literally the manual for al_set_new_window_position β€” Allegro 5 API. that's the whole name section, periodt πŸ’…

🌸 SYNOPSIS 🌸

like, here's the vibe:

#include <allegro5/allegro.h>

void al_set_new_window_position(int x, int y)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what it does: it sets where the top left pixel of the client area of newly created windows (non-fullscreen) will be on screen β€” for displays created by the calling thread. that's the main character behavior ✨

ngl, negative values are allowed on some multihead systems. lowkey useful.

and to reset to the default behaviour, pass (INT_MAX, INT_MAX). that's it, that's the reset button 🫢

πŸ’œ SEE ALSO πŸ’œ


source/version: Allegro reference manual Β· page: al_set_new_window_position(3alleg5) Β· date: not listed in this footer, sorry bestie 😭 mwah πŸ’‹

πŸ“¦ where this page comes from