File: menu.h

package info (click to toggle)
deco 3.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 588 kB
  • ctags: 886
  • sloc: ansic: 9,968; sh: 158; makefile: 125
file content (26 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download | duplicates (2)
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
typedef void (menufunc) (int k, int sk);

struct submenu {
	char *name;                     /* name of submenu */
	int key;                        /* return key */
	menufunc *exec;                 /* function to execute */
	int active;                     /* is it active for now */
	int tag;                        /* tag of submenu */
	int row;                        /* row of submenu */
};

struct menu {
	char *name;                     /* name of menu */
	int key;                        /* return key */
	struct submenu *submenu;        /* array of submenus */
	int col;                        /* base column of submenu window */
	int len;                        /* length of head name */
	int hgh;                        /* height of submenu window */
	int wid;                        /* width of submenu window */
	int nsm;                        /* current submenu */
	BOX *box;                       /* box under menu */
};

extern struct menu menu [];             /* main menu array */

extern nmenu;                           /* current menu */