al_build_menu(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸŽ€ 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 🫢

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