do_dialog(3)
πΈ do_dialog(3) β the vibe β¨
okay bestie, welcome to the do_dialog(3) page, aka the Allegro manual's own basic dialog manager. It's giving "make the dialog happen" energy, and we're gonna get you all the deets without losing a single crumb. π«Ά
β¨ NAME β¨
do_dialog β the basic dialog manager function from the Allegro game programming library. π
π¦ SYNOPSIS π¦
#include <allegro.h>
int do_dialog(DIALOG *dialog, int focus_obj);
π DESCRIPTION π
So, do_dialog is the basic dialog manager function. It displays a dialog β which is an array of dialog objects, terminated by one with a NULL dialog procedure β and it sets the input focus to focus_obj. If you don't want anything to have the focus, pass -1. no cap, that's the move.
Then it interprets user input and dispatches messages as they are required. It keeps doing that until one of the dialog procedures tells it to close the dialog. At that point, do_dialog returns the index of the object that caused it to exit. π
OR, if ESC is pressed, it returns -1. That's the emergency exit, bestie. πͺπ¨
π SEE ALSO π
popup_dialog(3)init_dialog(3)centre_dialog(3)set_dialog_color(3)find_dialog_focus(3)excustom(3)exgui(3)exrgbhsv(3)
mwah π that's the page, bestie. Footer sign-off: Allegro manual, version 4.4.3, page do_dialog(3). The footer didn't give a date, so we're not making one up β periodt. β¨
π¦ 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