al_do_multiline_text - Online Linux Manual PageSection : 3
Updated :
Source : Allegro reference manual
Note :

NAMEal_do_multiline_text − Allegro 5 API

SYNOPSIS #include <allegro5/allegro_font.h> void al_do_multiline_text(const ALLEGRO_FONT *font,    float max_width, const char *text,    bool (*cb)(int line_num, const char *line, int size, void *extra),    void *extra)

DESCRIPTIONThis function processes the text and splits it into lines as al_draw_multiline_text(3) would, and then calls the callback cb once for every line. This is useful for custom drawing of multiline text, or for calculating the size of multiline text ahead of time. See the documentation on al_draw_multiline_text(3) for an explanation of the splitting algorithm. For every line that this function splits text into the callback cb will be called once with the following parameters: • line_num − the number of the line starting from zero and counting up • line − a pointer to the beginning character of the line (see below) • size − the size of the line (0 for empty lines) • extra − the same pointer that was passed to al_do_multiline_text Note that line is not guaranteed to be a NUL−terminated string, but will merely point to a character within text or to an empty string in case of an empty line. If you need a NUL−terminated string, you will have to copy line to a buffer and NUL−terminate it yourself. You will also have to make your own copy if you need the contents of line after cb has returned, as line is not guaranteed to be valid after that. If the callback cb returns false, al_do_multiline_text will stop immediately, otherwise it will continue on to the next line.

SINCE5.1.9

SEE ALSOal_draw_multiline_text(3)
0
Johanes Gumabo
Data Size   :   7,347 byte
man-al_do_multiline_text.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 183,318
Visitor ID   :     :  
Visitor IP   :   3.129.210.35   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.