]> git.sur5r.net Git - cc65/blob - include/geos/gmenu.h
Even more optimization, cleanup, bugfix, comments.
[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 #include <geos/gstruct.h>
11
12 void __fastcall__ DoMenu(struct menu *myMenu);
13 void ReDoMenu(void);
14 void RecoverMenu(void);
15 void RecoverAllMenus(void);
16 void DoPreviousMenu(void);
17 void GotoFirstMenu(void);
18
19 void __fastcall__ DoIcons(struct icontab *myIconTab);
20
21 /* DoMenu - menutypes */
22 #define MENU_ACTION     0x00
23 #define DYN_SUB_MENU    0x40
24 #define SUB_MENU        0x80
25 #define HORIZONTAL      0x00
26 #define VERTICAL        0x80
27 /* menu string offsets */
28 #define OFF_MY_TOP      0
29 #define OFF_MY_BOT      1
30 #define OFF_MX_LEFT     2
31 #define OFF_MX_RIGHT    4
32 #define OFF_NUM_M_ITEMS 6
33 #define OFF_1ST_M_ITEM  7
34 /* icon string offsets */
35 #define OFF_NM_ICNS     0
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
44 #define OFF_NX_ICON     8
45 /* icons, menus status flags    */
46 #define ST_FLASH        0x80
47 #define ST_INVERT       0x40
48 #define ST_LD_AT_ADDR   0x01
49 #define ST_LD_DATA      0x80
50 #define ST_PR_DATA      0x40
51 #define ST_WR_PR        0x40
52
53 #endif