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