Subversion Repositories Kolibri OS

Rev

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

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