.\" Automatically generated by Pandoc 3.1.6.2 .\" .\" 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_build_menu" "3" "" "Allegro reference manual" "" .hy .SH NAME .PP al_build_menu - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include ALLEGRO_MENU *al_build_menu(ALLEGRO_MENU_INFO *info) \f[R] .fi .SH DESCRIPTION .PP Builds a menu based on the specifications of a sequence of \f[V]ALLEGRO_MENU_INFO\f[R] elements. .PP Returns a pointer to the root \f[V]ALLEGRO_MENU\f[R], or \f[V]NULL\f[R] on failure. To gain access to the other menus and items, you will need to search for them using al_find_menu_item(3). .SH SINCE .PP 5.1.0 .SH SEE ALSO .PP ALLEGRO_MENU_INFO(3), al_create_menu(3), al_create_popup_menu(3)