al_win_add...w_callback(3)
β¨ NAME β¨
al_win_add_window_callback - Allegro 5 API
okay so bestie, this page is al_win_add...w_callback(3) from the Library Functions Manual, and it's literally all about adding a callback to a Windows display window. π»β¨
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_windows.h>
bool al_win_add_window_callback(ALLEGRO_DISPLAY *display,
bool (*callback)(ALLEGRO_DISPLAY *display, UINT message, WPARAM wparam,
LPARAM lparam, LRESULT *result, void *userdata), void *userdata)
π DESCRIPTION π
The specified callback function is gonna intercept the windowβs message before Allegro processes it. π If the callback function consumes the event, then it should return true β and in that case, Allegro will not do anything with the event. periodt.
Optionally, you may use result to customize what Allegro will return in response to this event. By default, Allegro returns TRUE. π«Ά
The userdata pointer can be used to supply additional context to the callback function. π
The callbacks are executed in the same order they were added β first in, first served, no cap. π₯
Returns true if the callback was added. β
β SINCE β
5.1.2 β vintage-ish but still iconic. π
β from the Allegro reference manual π«Ά Β· al_win_add...w_callback(3) Β· date/version not listed on this footer, 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