al_do_multiline_ustr(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 πŸŽ€


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