gui_textout_ex(3)
π gui_textout_ex(3) π
okay so bestie, welcome to another iconic page from the Allegro manual β this one's all about gui_textout_ex, and yes it's giving very much "the little helper that makes your GUI look cute". β¨
πΈ NAME πΈ
gui_textout_ex β draws a text string onto the screen, and it handles the keyboard shortcut underbars for you. It's part of the Allegro game programming library, iykyk. π
β¨ SYNOPSIS β¨
#include <allegro.h>
int gui_textout_ex(BITMAP *bmp, const char *s, int x, y, color, bg,
centre);
π¦ DESCRIPTION π¦
So this one is a helper function β like, it exists specifically for the GUI routines to use. It draws a text string onto the screen, and here's the slay part: it interprets the '&' character as an underbar, which is exactly how you show off those keyboard shortcuts in menus and buttons. π
It returns the width of the output string in pixels, so you can go ahead and do math with it if that's your thing. No cap. π
π SEE ALSO π
and that's the whole vibe, bestie π«Ά β this page came straight out of Allegro version 4.4.3, so if you're running something else, maybe double-check. mwah, go draw some text ππΈβ¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms