]> git.sur5r.net Git - cc65/blob - include/geos/gmenu.h
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / include / geos / gmenu.h
1 /*
2   GEOS menu and icon functions
3
4   ported to small C on 27.10.1999
5   by Maciej 'YTM/Alliance' Witkowiak
6 */
7
8 #ifndef _GMENU_H
9 #define _GMENU_H
10
11 #ifndef _GSTRUCT_H
12 #include <geos/gstruct.h>
13 #endif
14
15 void __fastcall__ DoMenu(struct menu *myMenu);
16 void __fastcall__ ReDoMenu(void);
17 void __fastcall__ RecoverMenu(void);
18 void __fastcall__ RecoverAllMenus(void);
19 void __fastcall__ DoPreviousMenu(void);
20 void __fastcall__ GotoFirstMenu(void);
21
22 void __fastcall__ DoIcons(struct icontab *myIconTab);
23
24 /* DoMenu - menutypes */
25 #define MENU_ACTION     0x00
26 #define DYN_SUB_MENU    0x40
27 #define SUB_MENU        0x80
28 #define HORIZONTAL      0x00
29 #define VERTICAL        0x80
30 /* menu string offsets */
31 #define OFF_MY_TOP      0
32 #define OFF_MY_BOT      1
33 #define OFF_MX_LEFT     2
34 #define OFF_MX_RIGHT    4
35 #define OFF_NUM_M_ITEMS 6
36 #define OFF_1ST_M_ITEM  7
37 /* icon string offsets */
38 #define OFF_NM_ICNS     0
39 #define OFF_IC_XMOUSE   1
40 #define OFF_IC_YMOUSE   3
41 #define OFF_PIC_ICON    0
42 #define OFF_X_ICON_POS  2
43 #define OFF_Y_ICON_POS  3
44 #define OFF_WDTH_ICON   4
45 #define OFF_HEIGHT_ICON 5
46 #define OFF_SRV_RT_ICON 6
47 #define OFF_NX_ICON     8
48 /* icons, menus status flags    */
49 #define ST_FLASH        0x80
50 #define ST_INVERT       0x40
51 #define ST_LD_AT_ADDR   0x01
52 #define ST_LD_DATA      0x80
53 #define ST_PR_DATA      0x40
54 #define ST_WR_PR        0x40
55
56 #endif