al_do_multiline_ustr(3alleg5)
β¨ al_do_multiline_ustr β Allegro 5 API β¨
okay bestie, pull up a chair π«Ά this one lives in the Allegro 5 reference manual (that's the 3alleg5 manual, iykyk) and it's literally the multiline-callback situation but ~fancy string edition~ π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_font.h>
void al_do_multiline_ustr(const ALLEGRO_FONT *font, float max_width,
const ALLEGRO_USTR *ustr,
bool (*cb)(int line_num, const ALLEGRO_USTR * line, void *extra),
void *extra)
π DESCRIPTION π
so it's giving exactly like al_do_multiline_text(3alleg5), no cap β but the text you're handing it is an ALLEGRO_USTR instead of a NUL-terminated char array π¦ that's the whole glow-up. same energy, fancier string type, periodt β¨
β SINCE β
5.1.9 β vintage but iconic, she's been around π
π SEE ALSO π
al_draw_multiline_ustr(3alleg5)β her sister, go say hi π
Allegro reference manual Β· al_do_multiline_ustr(3alleg5)
and that's the whole page bestie, mwah π no notes, she ate, go forth and multiline responsibly ππ
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms