diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:18:09 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:18:09 +0000 |
commit | 5f8e0f8ef9a422691dd72e8a953a42a41478fcb4 (patch) | |
tree | 4b2df4796a534793648b3c4fc532fc36bd0cd525 /menu.h | |
parent | Releasing debian version 0.3-2.4 (diff) | |
download | w3m-debian/0.5.1-1.tar.gz w3m-debian/0.5.1-1.zip |
Releasing debian version 0.5.1-1debian/0.5.1-1
Diffstat (limited to '')
-rw-r--r-- | menu.h | 54 |
1 files changed, 54 insertions, 0 deletions
@@ -0,0 +1,54 @@ +/* $Id: menu.h,v 1.2 2001/11/20 17:49:23 ukai Exp $ */ +/* + * w3m menu.h + */ + +#ifndef MENU_H +#define MENU_H + +#define MENU_END 0 +#define MENU_NOP 1 +#define MENU_VALUE 2 +#define MENU_FUNC 4 +#define MENU_POPUP 8 + +#define MENU_NOTHING -1 +#define MENU_CANCEL -2 +#define MENU_CLOSE -3 + +typedef struct _MenuItem { + int type; + char *label; + int *variable; + int value; + void (*func) (); + struct _Menu *popup; + char *keys; + char *data; +} MenuItem; + +typedef struct _Menu { + struct _Menu *parent; + int cursorX; + int cursorY; + int x; + int y; + int width; + int height; + int nitem; + MenuItem *item; + int initial; + int select; + int offset; + int active; + int (*keymap[128]) (char c); + int keyselect[128]; +} Menu; + +typedef struct _MenuList { + char *id; + Menu *menu; + MenuItem *item; +} MenuList; + +#endif /* not MENU_H */ |