.\" Generated by the Allegro makedoc utility .TH do_menu 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME do_menu \- Displays an animates a popup menu. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int do_menu(MENU *menu, int x, int y); .SH DESCRIPTION Displays and animates a popup menu at the specified screen coordinates (these will be adjusted if the menu does not entirely fit on the screen). Returns the index of the menu item that was selected, or -1 if the menu was cancelled. Note that the return value cannot indicate selection from child menus, so you will have to use the callback functions if you want multi-level menus. .SH SEE ALSO .BR d_menu_proc (3alleg4), .BR active_menu (3alleg4), .BR gui_menu_draw_menu (3alleg4), .BR update_menu (3alleg4)