1do_menu(3) Allegro manual do_menu(3)
2
3
4
6 do_menu - Displays an animates a popup menu. Allegro game programming
7 library.
8
10 #include <allegro.h>
11
12
13 int do_menu(MENU *menu, int x, int y);
14
16 Displays and animates a popup menu at the specified screen coordinates
17 (these will be adjusted if the menu does not entirely fit on the
18 screen). Returns the index of the menu item that was selected, or -1
19 if the menu was cancelled. Note that the return value cannot indicate
20 selection from child menus, so you will have to use the callback func‐
21 tions if you want multi-level menus.
22
23
25 d_menu_proc(3), active_menu(3), gui_menu_draw_menu(3), update_menu(3)
26
27
28
29Allegro version 4.4.2 do_menu(3)