.\" Automatically generated by Pandoc 2.17.1.1 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_find_menu_item" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_find_menu_item - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include bool al_find_menu_item(ALLEGRO_MENU *haystack, uint16_t id, ALLEGRO_MENU **menu, int *index) \f[R] .fi .SH DESCRIPTION .PP Searches in the \f[V]haystack\f[R] menu for an item with the given \f[V]id\f[R]. (Note that this only represents a literal ID, and cannot be used as an index.) .PP If \f[V]menu\f[R] and \f[V]index\f[R] are not \f[V]NULL\f[R], they will be set as the parent menu containing the item and the zero-based (positive) index of the item. (If the menu item was not found, then their values are undefined.) .PP Returns true if the menu item was found. .SH SINCE .PP 5.1.0 .SH SEE ALSO .PP al_find_menu(3alleg5)