al_destroy_menu(3alleg5)

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

πŸ’… al_destroy_menu β€” Allegro 5 API ✨

okay bestie, so this page is al_destroy_menu from the Allegro 5 manual (that's the 3alleg5 situation if you were wondering) and honestly? it's a short one, but it's a powerful one. let's get into it 🫢


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_native_dialog.h>

void al_destroy_menu(ALLEGRO_MENU *menu)

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do?? it destroys an entire menu, and like… including its sub-menus. the whole tree, gone, one call, no cap πŸ’€πŸŒ³

and here's the part where you gotta pay attention, bestie:

Any references to it or a sub-menu are no longer valid. like, not "kinda stale", not "probably fine", just invalid. do not touch them. do not look at them. do not pass them to anything. they're ghosts now πŸ‘»

the good news though?? the actual iconic part?? it is safe to call this on a menu that is currently being displayed. yes fr fr πŸ’– you can yeet a menu while it's literally on screen and that is completely fine. slay.


⭐ SINCE ⭐

5.1.0 β€” so it's been here a minute, lowkey a veteran πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole vibe check, bestie β€” this page came straight out of the Allegro reference manual, for al_destroy_menu(3alleg5). go forth and destroy (menus, responsibly) πŸ’œβœ¨πŸŒˆ

πŸ“¦ where this page comes from