Subversion Repositories Kolibri OS

Rev

Rev 324 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
300 serge 1
 
2
extern "C"
3
{
4
#endif
5
6
 
7
 
8
#define FONT1          0x10000000
9
10
 
11
#define BT_NOFRAME     0x20000000
12
#define BT_HIDE        0x40000000
13
#define BT_DEL         0x80000000
14
15
 
16
#define EV_KEY         2
17
#define EV_BUTTON      3
18
19
 
20
#define REL_WINDOW     1
21
22
 
23
#define FILE_EOF       6
24
25
 
26
 
27
typedef unsigned short int WORD;
28
29
 
30
{  DWORD pci_cmd;
31
   DWORD irq;
32
   DWORD glob_cntrl;
33
   DWORD glob_sta;
34
   DWORD codec_io_base;
35
   DWORD ctrl_io_base;
36
   DWORD codec_mem_base;
37
   DWORD ctrl_mem_base;
38
   DWORD codec_id;
39
} CTRL_INFO;
40
41
 
42
{   DWORD       cmd;
43
    DWORD       offset;
44
    DWORD       r1;
45
    DWORD       count;
46
    DWORD       buff;
47
    char        r2;
48
    char       *name;
49
} FILEIO;
50
51
 
52
{   DWORD    attr;
53
    DWORD    flags;
54
    DWORD    cr_time;
55
    DWORD    cr_date;
56
    DWORD    acc_time;
57
    DWORD    acc_date;
58
    DWORD    mod_time;
59
    DWORD    mod_date;
60
    DWORD    size;
61
    DWORD    size_high;
62
} FILEINFO;
63
64
 
65
void* _stdcall UserAlloc(int size);
66
int   _stdcall UserFree(void* p);
324 serge 67
68
 
374 serge 69
300 serge 70
 
374 serge 71
72
 
300 serge 73
74
 
75
void debug_out_str(char* str);
76
77
 
324 serge 78
int _stdcall read_file (const char *name,char*buff,DWORD offset, DWORD count,DWORD *reads);
79
int _stdcall write_file(const char *name,char*buff,int offset,int count,int *writes);
80
300 serge 81
 
82
int _stdcall get_key(int *key);
324 serge 83
int _stdcall remap_key(int key);
84
85
 
300 serge 86
324 serge 87
 
300 serge 88
int wait_for_event(int time);
89
int wait_for_event_infinite();
90
void BeginDraw(void);
91
void EndDraw(void);
92
374 serge 93
 
94
void _stdcall DrawWindow(int x,int y, int sx, int sy,int workcolor,int style,
300 serge 95
                               int captioncolor,int windowtype,int bordercolor);
96
void _stdcall debug_out(int ch);
97
void _stdcall make_button(int x, int y, int xsize, int ysize, int id, int color);
98
void _stdcall draw_bar(int x, int y, int xsize, int ysize, int color);
99
void _stdcall write_text(int x,int y,int color,char* text,int len);
100
101
 
102
extern "C"
103
}
104
#endif
105