al_set_display_menu(3)
okay bestie, welcome to al_set_display_menu(3) β itβs from the Library Functions Manual and itβs part of the Allegro 5 API, so buckle up π
β¨
πΈ NAME πΈ
al_set_display_menu β Allegro 5 API π
β SYNOPSIS β
#include <allegro5/allegro_native_dialog.h>
bool al_set_display_menu(ALLEGRO_DISPLAY *display, ALLEGRO_MENU *menu)
π DESCRIPTION π
Okay so this one associates the menu with the display and shows it. Main character behavior, honestly.
If there was a previous menu associated with the display, it will be destroyed. Yep, poof. If you donβt want that to happen, you should first remove the menu with al_remove_display_menu(3). Consider this your friendly warning π«Ά
If the menu is already attached to a display, it will not be attached to the new display. And if menu is NULL, the current menu will still be destroyed. Not me double-checking that one π
β οΈ Note: Attaching a menu may cause the window as available to your application to be resized! You should listen for a resize event, check how much space was lost, and resize the window accordingly if you want to maintain your windowβs prior size. This is important, bestie β the window can get rearranged on you.
Returns true if successful. Slay β
π SINCE π
5.1.0 β iconic since day one, periodt.
π¦ SEE ALSO π¦
Thatβs the whole vibe check, bestie π source/version: Allegro reference manual; thereβs no date printed on this page, so consider this your cute sign-off π
π¦ 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