d_textbox_proc(3alleg4)
π d_textbox_proc π
okay so bestie, welcome to the d_textbox_proc page from the Allegro manual (that's section 3alleg4, iykyk) π β and yes it's the Allegro game programming library, the whole vibe. Let's get into it, no cap.
β¨ NAME β¨
d_textbox_proc β a dialog procedure that implements a text box object π
. Straight from the Allegro game programming library, periodt.
π¦ SYNOPSIS π¦
#include <allegro.h>
int d_textbox_proc(int msg, DIALOG *d, int c);
πΈ DESCRIPTION πΈ
So this right here is a text box object, and honestly? Iconic. Here's the tea β:
- The
dpfield points to the text that's gonna be displayed in the box. That's the whole main character right there. - If the text is long, a vertical scrollbar shows up on the right hand side of the object, and you can use it to scroll through the text. Very demure, very mindful scrolling behavior π«Ά.
- By default the text gets printed with word wrapping. But β plot twist β if the
D_SELECTEDflag is set, the text gets printed with character wrapping instead. Two different wrapping vibes, pick your fighter π. - The
d1field is used internally to store the number of lines of text. Not your business, it's her business π. - The
d2field is used to store how far it has scrolled through the text. Also internal. Also not your business.
lowkey reminder:d1andd2are internal bookkeeping fields here β the manpage says so, so don't go messing with them like they're yours, bestie π
π SEE ALSO π
and that's the whole page, bestie! β¨ This was d_textbox_proc from the Allegro manual, version 4.4.3 β slay, ate, no crumbs left π
ππ¦πΈπ
π¦ 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