al_get_window_borders(3)

al_get_window_borders3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
bool al_get_window_borders(ALLEGRO_DISPLAY *display, int *left, int *top, int *right, int *bottom)

Overview

If that information is available returns TRUE and fills in the size of the window borders. You can pass NULL for borders you do not want to retrieve.

If the border information is not available returns FALSE.

[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.

Since

5.2.9

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.