MENU(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

okay bestie, welcome to MENU(3) from the Allegro manual β€” the game programming library that's lowkey iconic ✨


πŸŽ€ NAME πŸŽ€

MENU β€” stores the entries of a menu. It's part of the Allegro game programming library, and it's giving "one menu item's whole personality" πŸ’…

✨ SYNOPSIS ✨

#include <allegro.h>

typedef struct MENU

πŸ’– DESCRIPTION πŸ’–

okay so this is the structure that holds one entry of a menu. Here's every field, bestie, no skipping:

  • char *text; β€” the text to display for the menu item.
  • int (*proc)(void); β€” called when the menu item is clicked.
  • struct MENU *child; β€” nested child menu.
  • int flags; β€” disabled or checked state.
  • void *dp; β€” pointer to any data you need.

So yeah, this is the structure used to hold an entry of a menu. For the description on how to obtain/use this structure, read chapter "GUI routines", section "GUI menus" β€” it's literally right there, iykyk πŸ“–

πŸ‘‘ SEE ALSO πŸ‘‘


later, bestie πŸ’– β€” this was MENU(3) from the Allegro manual, version 4.4.3. The footer didn't give a date, so just imagine it's timeless, periodt ✨

πŸ“¦ where this page comes from