1al_set_display_menu(3)                                  al_set_display_menu(3)
2
3
4

NAME

6       al_set_display_menu - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_native_dialog.h>
10
11              bool al_set_display_menu(ALLEGRO_DISPLAY *display, ALLEGRO_MENU *menu)
12

DESCRIPTION

14       Associates the menu with the display and shows it.  If there was a pre‐
15       vious menu associated with the display, it will be destroyed.   If  you
16       don’t want that to happen, you should first remove the menu with al_re‐
17       move_display_menu(3).
18
19       If the menu is already attached to a display, it will not  be  attached
20       to  the  new  display.  If menu is NULL, the current menu will still be
21       destroyed.
22
23              Note: Attaching a menu may cause the window as available to your
24              application to be resized! You should listen for a resize event,
25              check how much space was lost, and resize the window accordingly
26              if you want to maintain your window’s prior size.
27
28       Returns true if successful.
29

SINCE

31       5.1.0
32

SEE ALSO

34       al_create_menu(3), al_remove_display_menu(3)
35
36
37
38Allegro reference manual                                al_set_display_menu(3)
Impressum