---
name: "MENU"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/MENU"
---

# MENU(3alleg)

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

## NAME

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

## SYNOPSIS

**#include \<allegro.h\>**

**typedef struct MENU**

## DESCRIPTION

```
   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.

## SEE ALSO

[**do\_menu**(3alleg)](/do_menu/3alleg.md), [**exgui**(3alleg)](/exgui/3alleg.md)
