1al_win_add_window_callback(3)                    al_win_add_window_callback(3)
2
3
4

NAME

6       al_win_add_window_callback - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_windows.h>
10
11              bool al_win_add_window_callback(ALLEGRO_DISPLAY *display,
12                 bool (*callback)(ALLEGRO_DISPLAY *display, UINT message, WPARAM wparam,
13                 LPARAM lparam, LRESULT *result, void *userdata), void *userdata)
14

DESCRIPTION

16       The specified callback function will intercept the window’s message be‐
17       fore Allegro processes it.   If  the  callback  function  consumes  the
18       event,  then  it should return true.  In that case, Allegro will not do
19       anything with the event.
20
21       Optionally, you may use result to customize what  Allegro  will  return
22       return in response to this event.  By default, Allegro returns TRUE.
23
24       The  userdata  pointer  can be used to supply additional context to the
25       callback function.
26
27       The callbacks are executed in the same order they were added.
28
29       Returns true if the callback was added.
30

SINCE

32       5.1.2
33
34
35
36Allegro reference manual                         al_win_add_window_callback(3)
Impressum