File: al_set_display_menu.3

package info (click to toggle)
allegro5 2%3A5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,032 kB
  • sloc: ansic: 120,340; cpp: 15,707; objc: 4,805; python: 2,915; java: 2,195; sh: 887; xml: 86; makefile: 49; perl: 37; pascal: 24
file content (40 lines) | stat: -rw-r--r-- 1,097 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.TH "al_set_display_menu" "3" "" "Allegro reference manual" ""
.SH NAME
.PP
al_set_display_menu \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro_native_dialog.h>

bool\ al_set_display_menu(ALLEGRO_DISPLAY\ *display,\ ALLEGRO_MENU\ *menu)
\f[]
.fi
.SH DESCRIPTION
.PP
Associates the \f[C]menu\f[] with the \f[C]display\f[] and shows it.
If there was a previous menu associated with the display, it will be
destroyed.
If you don\[aq]t want that to happen, you should first remove the menu
with al_remove_display_menu(3).
.PP
If the menu is already attached to a display, it will not be attached to
the new display.
If \f[C]menu\f[] is \f[C]NULL\f[], the current menu will still be
destroyed.
.RS
.PP
\f[I]Note:\f[] 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\[aq]s prior size.
.RE
.PP
Returns true if successful.
.SH SINCE
.PP
5.1.0
.SH SEE ALSO
.PP
al_create_menu(3), al_remove_display_menu(3)