al_clone_menu(3alleg5)
π al_clone_menu β NAME π
okay bestie, say hi to al_clone_menu β it's part of the Allegro 5 API and it's literally here to duplicate your menus so you can reuse them somewhere else. iconic behavior, no cap. π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_native_dialog.h>
ALLEGRO_MENU *al_clone_menu(ALLEGRO_MENU *menu)
π¦ DESCRIPTION π¦
so what this does is make a copy of a menu, fr fr β the whole point is that you can reuse that copy on another display. π
and the menu you're cloning? it can be anything:
- a regular menu
- a popup menu
- or a sub-menu
no restrictions, we love that for us. πΈ
it returns the cloned menu. that's the whole vibe. π«Ά
β SINCE β
5.1.0 β so this has been serving since 5.1.0, periodt. π
π SEE ALSO π
al_clone_menu_for_popup(3alleg5)β go check your other bestie for the popup-specific clone situation. π
and that's the tea, bestie π β this was the Allegro reference manual doing its thing, al_clone_menu(3alleg5), mwah πβ¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms