shutdown_menu(3)
π shutdown_menu(3) π
okay bestie, so this one is from the Allegro manual β the game programming library β and it's the little cleanup goblin that lives at the end of your menu's whole arc. π
β¨ NAME β¨
shutdown_menu β destroys a menu player object that init_menu() handed you, and tells you what the user actually picked. Allegro game programming library, no cap. π
π¦ SYNOPSIS π¦
#include <allegro.h>
int shutdown_menu(MENU_PLAYER *player);
πΈ DESCRIPTION πΈ
So here's the tea, bestie: shutdown_menu() destroys a menu player object β the kind that init_menu() gave you β and it also returns the index of the menu item that was selected. π
If the menu got cancelled instead? You get -1. That's it. That's the whole vibe. π«Ά
And like, if you're sitting there thinking "wait, this feels familiar" β you're so right, because this return value is the same as the return value from do_menu(). literally identical energy. no cap. π
π₯ SEE ALSO π₯
init_menu(3)β where the menu player object comes from in the first place πupdate_menu(3)β the one doing the actual updating while you're in there β
and that's the whole page, bestie, we ate and left no crumbs π
this has been Allegro, version 4.4.3 β k bye, go destroy some menu players responsibly πβ¨π
π¦ 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