DOKK / manpages / debian 10 / allegro4-doc / MENU.3alleg4.en
MENU(3alleg4) Allegro manual MENU(3alleg4)

MENU - Stores the entries of a menu. Allegro game programming library.

#include <allegro.h>

typedef struct MENU


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

Structure used to hold an entry of a menu. Read chapter "GUI routines", section "GUI menus" for a description on how to obtain/use this structure.

do_menu(3alleg4), exgui(3alleg4)

version 4.4.2 Allegro