1gui_menu_draw_menu(3) Allegro manual gui_menu_draw_menu(3)
2
3
4
6 gui_menu_draw_menu, gui_menu_draw_menu_item - Hooks to modify the
7 appearance of menus. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 extern void (*gui_menu_draw_menu)(int x, int y, int w, int h);
14
15 extern void (*gui_menu_draw_menu_item)(MENU *m, int x, int y, int w,
16
17 int h, int bar, int sel);
18
20 If set, these functions will be called whenever a menu needs to be
21 drawn, so you can change how menus look.
22
23 gui_menu_draw_menu() is passed the position and size of the menu. It
24 should draw the background of the menu onto screen.
25
26 gui_menu_draw_menu_item() is called once for each menu item that is to
27 be drawn. bar will be set if the item is part of a top-level horizontal
28 menu bar, and sel will be set if the menu item is selected. It should
29 also draw onto screen.
30
31
33Allegro version 4.4.3 gui_menu_draw_menu(3)