1al_find_menu_item(3) al_find_menu_item(3)
2
3
4
6 al_find_menu_item - Allegro 5 API
7
9 #include <allegro5/allegro_native_dialog.h>
10
11 bool al_find_menu_item(ALLEGRO_MENU *haystack, uint16_t id, ALLEGRO_MENU **menu,
12 int *index)
13
15 Searches in the haystack menu for an item with the given id. (Note
16 that this only represents a literal ID, and cannot be used as an
17 index.)
18
19 If menu and index are not NULL, they will be set as the parent menu
20 containing the item and the zero-based (positive) index of the item.
21 (If the menu item was not found, then their values are undefined.)
22
23 Returns true if the menu item was found.
24
26 5.1.0
27
29 al_find_menu(3)
30
31
32
33Allegro reference manual al_find_menu_item(3)