diff options
author | Akinori Ito <aito@eie.yz.yamagata-u.ac.jp> | 2001-11-08 05:14:08 +0000 |
---|---|---|
committer | Akinori Ito <aito@eie.yz.yamagata-u.ac.jp> | 2001-11-08 05:14:08 +0000 |
commit | 68a07bf03b7624c9924065cce9ffa45497225834 (patch) | |
tree | c2adb06a909a8594445e4a3f8587c4bad46e3ecd /menu.h | |
download | w3m-68a07bf03b7624c9924065cce9ffa45497225834.tar.gz w3m-68a07bf03b7624c9924065cce9ffa45497225834.zip |
Initial revision
Diffstat (limited to '')
-rw-r--r-- | menu.h | 53 |
1 files changed, 53 insertions, 0 deletions
@@ -0,0 +1,53 @@ +/* + * 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 */ |