active_menu(3alleg4)
β¨ NAME β¨
okay so bestie, this is the active_menu(3alleg4) page from the Allegro manual π. active_menu is a global pointer to the most recent activated menu β and yes, it's part of the Allegro game programming library, so it's giving very much "I know where you came from" energy πΈ.
π¦ SYNOPSIS π¦
#include <allegro.h>
extern MENU *active_menu;
π DESCRIPTION π
When a menu callback procedure is triggered, this will be set to the menu item that was selected, so your routine can determine where it was called from β¨.
That's literally it, no cap. Your callback gets called, active_menu points at the menu item that was selected, and your routine can figure out where it was called from π. It's the main character of "who summoned me?" and honestly? Iconic.
π SEE ALSO π
exgui(3alleg4)β go peek, bestie π¦
Allegro version 4.4.3, periodt π. That's the source/version for this little page. Catch you in the next manpage, mwah! πβ¨
π¦ 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