al_get_ustr_dimensions(3alleg5)

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

✨ NAME ✨

al_get_ustr_dimensions β€” Allegro 5 API

hey bestie πŸ’– welcome to the al_get_ustr_dimensions(3alleg5) manual page, like literally the whole thing. it's giving "i measure text but make it ALLEGRO_USTR" energy, and we're gonna get into it. no cap.


πŸ“œ SYNOPSIS πŸ“œ

#include <allegro5/allegro_font.h>

void al_get_ustr_dimensions(const ALLEGRO_FONT *f,
   ALLEGRO_USTR const *ustr,
   int *bbx, int *bby, int *bbw, int *bbh)

πŸ’… DESCRIPTION πŸ’…

okay so real talk: this function is literally the same vibe as al_get_text_dimensions(3alleg5), except the text is passed as an ALLEGRO_USTR instead of a NUL-terminated char array. that's it. that's the tea. πŸ“

you hand it a font f, an ALLEGRO_USTR called ustr, and those four int pointers: bbx, bby, bbw, bbh. iconic. πŸ’…

bestie note: if you were looking for the char array version, that's a whole different function and you should go check the SEE ALSO. iykyk. πŸ¦‹

πŸ”— SEE ALSO πŸ”—


and that's the whole page, periodt. this was the <b>Allegro reference manual</b> doing its thing for al_get_ustr_dimensions(3alleg5). stay slay, keep compiling, and don't forget to free your USTRs πŸ’–βœ¨

πŸ“¦ where this page comes from