Subversion Repositories Kolibri OS

Rev

Rev 228 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. #ifdef __cplusplus
  3. extern "C"
  4. {
  5. #endif
  6.  
  7. #define FONT0          0x00000000
  8. #define FONT1          0x10000000
  9.  
  10. #define BT_NORMAL      0x00000000
  11. #define BT_NOFRAME     0x20000000
  12. #define BT_HIDE        0x40000000
  13. #define BT_DEL         0x80000000
  14.  
  15. #define EV_REDRAW      1
  16. #define EV_KEY         2
  17. #define EV_BUTTON      3
  18.  
  19. #define REL_SCREEN     0
  20. #define REL_WINDOW     1
  21.  
  22. #define FILE_NOT_FOUND 5
  23. #define FILE_EOF       6
  24.  
  25. typedef unsigned int DWORD;
  26. typedef unsigned short int WORD;
  27. typedef unsigned int size_t;
  28.  
  29. typedef struct
  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. typedef struct
  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. typedef struct
  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. void  _stdcall InitHeap(size_t heap_size);
  65. void* _stdcall UserAlloc(size_t size);
  66.  
  67. void _stdcall CreateThread(void *fn, char *p_stack);
  68. DWORD _stdcall GetMousePos(DWORD rel_type);
  69.  
  70. void _stdcall debug_out_hex(DWORD val);
  71. void debug_out_str(char* str);
  72.  
  73. int _stdcall get_fileinfo(char *name,FILEINFO* pinfo);
  74. int _stdcall read_file (char *name,char*buff,int offset,int count,int *reads);
  75.  
  76. void exit();
  77. int _stdcall get_key(int *key);
  78. int _cdecl get_button_id();
  79. void delay(int val);
  80. int wait_for_event(int time);
  81. int wait_for_event_infinite();
  82. void BeginDraw(void);
  83. void EndDraw(void);
  84. void _stdcall DrawWindow(int x,int y, int sx, int sy,int workcolor,int style,
  85.                                int captioncolor,int windowtype,int bordercolor);
  86. void _stdcall debug_out(int ch);
  87. void _stdcall make_button(int x, int y, int xsize, int ysize, int id, int color);
  88. void _stdcall draw_bar(int x, int y, int xsize, int ysize, int color);
  89. void _stdcall write_text(int x,int y,int color,char* text,int len);
  90.  
  91. #ifdef __cplusplus
  92. extern "C"
  93. }
  94. #endif
  95.