1init_menu(3)                    Allegro manual                    init_menu(3)
2
3
4

NAME

6       init_menu  -  Low level initialisation of a menu. Allegro game program‐
7       ming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       MENU_PLAYER *init_menu(MENU *menu, int x, int y);
14

DESCRIPTION

16       This function provides lower level access to the same functionality  as
17       do_menu(), but allows you to combine a popup menu with your own program
18       control structures. It initialises a menu, returning  a  pointer  to  a
19       menu  player  object  that  can  be  used  with update_menu() and shut‐
20       down_menu().  With these functions, you could implement your  own  ver‐
21       sion of do_menu() with the lines:
22
23          MENU_PLAYER *player = init_menu(menu, x, y);
24
25          while (update_menu(player))
26             ;
27
28          return shutdown_menu(player);
29
30

SEE ALSO

32       update_menu(3), shutdown_menu(3), do_menu(3)
33
34
35
36Allegro                          version 4.2.2                    init_menu(3)
Impressum