2 GEOS menu and icon functions
4 by Maciej 'YTM/Elysium' Witkowiak
10 #include <geos/gstruct.h>
12 void __fastcall__ DoMenu(struct menu *myMenu);
14 void RecoverMenu(void);
15 void RecoverAllMenus(void);
16 void DoPreviousMenu(void);
17 void GotoFirstMenu(void);
19 void __fastcall__ DoIcons(struct icontab *myIconTab);
21 /* DoMenu - menutypes */
22 #define MENU_ACTION 0x00
23 #define DYN_SUB_MENU 0x40
25 #define HORIZONTAL 0x00
27 /* menu string offsets */
31 #define OFF_MX_RIGHT 4
32 #define OFF_NUM_M_ITEMS 6
33 #define OFF_1ST_M_ITEM 7
34 /* icon string offsets */
36 #define OFF_IC_XMOUSE 1
37 #define OFF_IC_YMOUSE 3
38 #define OFF_PIC_ICON 0
39 #define OFF_X_ICON_POS 2
40 #define OFF_Y_ICON_POS 3
41 #define OFF_WDTH_ICON 4
42 #define OFF_HEIGHT_ICON 5
43 #define OFF_SRV_RT_ICON 6
45 /* icons, menus status flags */
47 #define ST_INVERT 0x40
48 #define ST_LD_AT_ADDR 0x01
49 #define ST_LD_DATA 0x80
50 #define ST_PR_DATA 0x40