2 GEOS menu and icon functions
4 ported to small C on 27.10.1999
5 by Maciej 'YTM/Alliance' Witkowiak
12 #include <geos/gstruct.h>
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);
22 void __fastcall__ DoIcons(struct icontab *myIconTab);
24 /* DoMenu - menutypes */
25 #define MENU_ACTION 0x00
26 #define DYN_SUB_MENU 0x40
28 #define HORIZONTAL 0x00
30 /* menu string offsets */
34 #define OFF_MX_RIGHT 4
35 #define OFF_NUM_M_ITEMS 6
36 #define OFF_1ST_M_ITEM 7
37 /* icon string offsets */
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
48 /* icons, menus status flags */
50 #define ST_INVERT 0x40
51 #define ST_LD_AT_ADDR 0x01
52 #define ST_LD_DATA 0x80
53 #define ST_PR_DATA 0x40