1al_open_native_text_log(3) al_open_native_text_log(3)
2
3
4
6 al_open_native_text_log - Allegro 5 API
7
9 #include <allegro5/allegro_native_dialog.h>
10
11 ALLEGRO_TEXTLOG *al_open_native_text_log(char const *title, int flags)
12
14 Opens a window to which you can append log messages with al_append_na‐
15 tive_text_log(3). This can be useful for debugging if you don’t want
16 to depend on a console being available.
17
18 Use al_close_native_text_log(3) to close the window again.
19
20 The flags available are:
21
22 ALLEGRO_TEXTLOG_NO_CLOSE
23 Prevent the window from having a close button. Otherwise, if
24 the close button is pressed, an event is generated; see
25 al_get_native_text_log_event_source(3).
26
27 ALLEGRO_TEXTLOG_MONOSPACE
28 Use a monospace font to display the text.
29
30 Returns NULL if there was an error opening the window, or if text log
31 windows are not implemented on the platform.
32
34 al_append_native_text_log(3), al_close_native_text_log(3)
35
36
37
38Allegro reference manual al_open_native_text_log(3)