gui_textout_ex(3alleg4)
β¨ NAME β¨
gui_textout_ex β draws a text string onto the screen with keyboard shortcut underbars. Allegro game programming library. (yep, straight from the 3alleg4 manual, bestie π )
πΈ SYNOPSIS πΈ
#include <allegro.h>
int gui_textout_ex(BITMAP *bmp, const char *s, int x, y, color, bg,
centre);
π DESCRIPTION π
okay so gui_textout_ex is literally the helper function the GUI routines use, and it's giving main character energy for real. It draws a text string onto the screen, and the way it does it? It interprets the '&' character as an underbar β you know, for displaying keyboard shortcuts. iconic.
And bestie, it returns the width of the output string in pixels. So you know exactly how much space your text took. no cap. π―
quick vibe check: this is a helper for the GUI routines, so it's not out here doing the most β it's just doing its little job and doing it well. π«Ά
π¦ SEE ALSO π¦
- gui_strlen(3alleg4)
and that's the tea, bestie! β this page came from Allegro version 4.4.3 and the 3alleg4 manual. slay. π β¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms