al_clone_menu(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 🌈


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