al_build_menu(3)
π al_build_menu(3) π
okay bestie, welcome to the Library Functions Manual page for al_build_menu(3) β this is the Allegro 5 API, and we're literally about to build a menu. no cap. π
β¨
π¦ NAME π¦
al_build_menu β Allegro 5 API. that's the whole name block: this is the function that builds you a menu. periodt. π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_native_dialog.h>
ALLEGRO_MENU *al_build_menu(ALLEGRO_MENU_INFO *info)
that's the include and the signature, verbatim β do not @ me, the compiler will. ππ
πΈ DESCRIPTION πΈ
okay so al_build_menu builds a menu based on the specifications of a sequence of ALLEGRO_MENU_INFO elements. it's giving βmenu assembly, but make it API.β π οΈπ
it returns a pointer to the root ALLEGRO_MENU, or NULL on failure. and if you want to gain access to the other menus and items, you're gonna need to search for them using al_find_menu_item(3) β iykyk. ππ«
β SINCE β
5.1.0 β been iconic since then. ππ
π«Ά SEE ALSO π«Ά
ALLEGRO_MENU_INFO(3)πal_create_menu(3)πal_create_popup_menu(3)π¦
the bestie cross-refs, go read them next. mwah. π
from the Allegro reference manual, page al_build_menu(3) β the footer didn't give us a date, so no fake timestamp, just a lil π and a π«Ά. byeee.
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms