File: gmenu.h

package info (click to toggle)
cc65 2.19-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,268 kB
  • sloc: ansic: 117,151; asm: 66,339; pascal: 4,248; makefile: 1,009; perl: 607
file content (53 lines) | stat: -rw-r--r-- 1,221 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
  GEOS menu and icon functions

  by Maciej 'YTM/Elysium' Witkowiak
*/

#ifndef _GMENU_H
#define _GMENU_H

#include <geos/gstruct.h>

void __fastcall__ DoMenu(struct menu *myMenu);
void ReDoMenu(void);
void RecoverMenu(void);
void RecoverAllMenus(void);
void DoPreviousMenu(void);
void GotoFirstMenu(void);

void __fastcall__ DoIcons(struct icontab *myIconTab);

/* DoMenu - menutypes */
#define MENU_ACTION     0x00
#define DYN_SUB_MENU    0x40
#define SUB_MENU        0x80
#define HORIZONTAL      0x00
#define VERTICAL        0x80
/* menu string offsets */
#define OFF_MY_TOP      0
#define OFF_MY_BOT      1
#define OFF_MX_LEFT     2
#define OFF_MX_RIGHT    4
#define OFF_NUM_M_ITEMS 6
#define OFF_1ST_M_ITEM  7
/* icon string offsets */
#define OFF_NM_ICNS     0
#define OFF_IC_XMOUSE   1
#define OFF_IC_YMOUSE   3
#define OFF_PIC_ICON    0
#define OFF_X_ICON_POS  2
#define OFF_Y_ICON_POS  3
#define OFF_WDTH_ICON   4
#define OFF_HEIGHT_ICON 5
#define OFF_SRV_RT_ICON 6
#define OFF_NX_ICON     8
/* icons, menus status flags    */
#define ST_FLASH        0x80
#define ST_INVERT       0x40
#define ST_LD_AT_ADDR   0x01
#define ST_LD_DATA      0x80
#define ST_PR_DATA      0x40
#define ST_WR_PR        0x40

#endif