al_get_window_borders(3)

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

πŸ’… al_get_window_borders(3) πŸ’…

okay bestie, this one is from the Allegro 5 API and lives in the Library Functions Manual β€” and it is literally here to hand you the size of a window’s borders when it can. 🫢

🌸 NAME 🌸

al_get_window_borders β€” Allegro 5 API. Yes, that’s the whole name, and yes, it’s giving β€œtiny but useful” energy. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro.h>

bool al_get_window_borders(ALLEGRO_DISPLAY *display, int *left, int *top, int *right, int *bottom)

πŸ’– DESCRIPTION πŸ’–

So here’s the tea β˜•: if that information is available, al_get_window_borders returns TRUE and fills in the size of the window borders. No cap.

You can pass NULL for borders you do not want to retrieve β€” lowkey iconic, honestly, because sometimes you only need some of the numbers. πŸ’…

If the border information is not available, it returns FALSE. That’s it. That’s the vibe check. 🫠

[Unstable API]: This is an experimental feature and currently only partially works on X11 and Windows. The meaning of the upper border may change when menus are present. ⚠️

πŸ‘‘ SEE ALSO πŸ‘‘

⭐ SINCE ⭐

5.2.9 β€” periodt, that’s when this landed. 🌈


mwah πŸ’‹ β€” source/version is the Allegro reference manual, the footer page tag is al_get_window_borders(3), and there’s no date listed on this page, so I’m not gonna invent one bestie 😭✨

πŸ“¦ 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