al_open_native_text_log(3alleg5)

al_open_native_text_log3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro_native_dialog.h>
ALLEGRO_TEXTLOG *al_open_native_text_log(char const *title, int flags)

Overview

Opens a window to which you can append log messages with al_append_native_text_log(3alleg5). This can be useful for debugging if you don’t want to depend on a console being available.

Use al_close_native_text_log(3alleg5) to close the window again.

The flags available are:

ALLEGRO_TEXTLOG_NO_CLOSE

Prevent the window from having a close button. Otherwise, if the close button is pressed, an event is generated; see al_get_native_text_log_event_source(3alleg5).

ALLEGRO_TEXTLOG_MONOSPACE

Use a monospace font to display the text.

Returns NULL if there was an error opening the window, or if text log windows are not implemented on the platform.

Note: On Android, logs can be viewed using logcat.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.