al_set_display_menu(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

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