File: menu.h

package info (click to toggle)
gltron 0.61-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,948 kB
  • ctags: 1,175
  • sloc: ansic: 7,580; perl: 168; makefile: 149; sh: 15
file content (45 lines) | stat: -rw-r--r-- 697 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
41
42
43
44
45
#ifndef MENUS
#define MENUS

enum {
  MENU_ACTION = 1,
  MENU_LEFT = 2,
  MENU_RIGHT = 4
};

extern float menu_fgColor[4];
extern float menu_hlColor1[4];
extern float menu_hlColor2[4];

typedef struct {
  /* fonttex *font; */
  float fgColor[4]; /* entries */
  float hlColor1[4]; /* the highlighted one */
  float hlColor2[4];
  char szCaption[64];
} mDisplay;

typedef struct Menu {
  int nEntries;
  int iHighlight;
  mDisplay display;
  char szName[64];
  char szCapFormat[64];
  struct Menu** pEntries;
  struct Menu* parent;
  void* param; /* reserved to bind parameters at runtime */
} Menu;

typedef struct {
  void* data;
  void* next;
} node;

  // hack
extern int menutime;
#endif