al_remove_display_menu(3)
π¦ al_remove_display_menu(3) β Library Functions Manual π¦
Okay bestie, we're in the Library Functions Manual and this page is short, iconic, and to the point.
π NAME π
al_remove_display_menu β Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro_native_dialog.h>
ALLEGRO_MENU *al_remove_display_menu(ALLEGRO_DISPLAY *display)
π DESCRIPTION π
So basically this function detaches the menu associated with the display and returns it. It's giving "taking the menu off the display and handing it back to you." Once you've got it back, the menu can then be used on a different display. Slay.
If you simply want to destroy the active menu, you can call al_set_display_menu(3) with a NULL menu. That's the shortcut, no cap.
π¦ SINCE π¦
5.1.0 β periodt.
π SEE ALSO π
al_set_display_menu(3)β the linked function, bestie.
Signing off from the Allegro reference manual with the footer matching al_remove_display_menu(3); there's no date printed on this page, so that's the whole cute receipt. πβ¨
π¦ 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