Subversion Repositories Kolibri OS

Rev

Rev 1764 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. #pragma once
  3.  
  4. #include "kosSyst.h"
  5. #include "kosFile.h"
  6. #include "MCSMEMM.H"
  7.  
  8. #include <stdarg.h>
  9.  
  10.  
  11. #define ERROR 8888888888.9
  12. #define ERROR_END 8888888888.7
  13.  
  14. #define PREC 2
  15.  
  16. typedef int HDC;
  17. typedef int DWORD;
  18.  
  19. extern int SysColor;
  20. extern char debuf[50];
  21.  
  22. typedef double (*function_t)(double);
  23.  
  24. typedef struct
  25. {
  26.   double x, y;
  27. } TCoord;
  28.  
  29.  
  30. Dword kos_GetSkinHeight();
  31. void kos_DrawLine( Word x1, Word y1, Word x2, Word y2, Dword colour, Dword invert);
  32. void DrawRegion(Dword x,Dword y,Dword width,Dword height,Dword color1);
  33. int atoi(const char* string);
  34.  
  35. double __cdecl fabs(double x);
  36. double __cdecl cos(double x);
  37. double __cdecl sin(double x);
  38. int di(double x);
  39.  
  40. double id(int x);
  41. bool isalpha(char c);
  42. double convert(char *s, int *len=NULL);
  43. void format( char *Str, int len, char* Format, ... );
  44.  
  45. void line( int x1, int y1, int x2, int y2);
  46.  
  47. void outtextxy( int x, int y, char *s, int len);
  48. void settextstyle( int a1, int a2, int a3);
  49.  
  50.  
  51. double textwidth( char *s, int len);
  52. double textheight( char *s, int len);
  53. void setcolor( DWORD color);
  54. void unsetcolor(HDC hdc);
  55. void rectangle( int x1, int y1, int x2, int y2);
  56.  
  57. typedef struct
  58. {
  59. unsigned        p00 ;
  60. unsigned        p04 ;
  61. unsigned        p08 ;
  62. unsigned        p12 ;
  63. unsigned        p16 ;
  64. char            p20 ;
  65. char            *p21 ;
  66. } kol_struct70 ;
  67.  
  68.  
  69. typedef struct
  70. {
  71. unsigned        p00 ;
  72. char            p04 ;
  73. char            p05[3] ;
  74. unsigned        p08 ;
  75. unsigned        p12 ;
  76. unsigned        p16 ;
  77. unsigned        p20 ;
  78. unsigned        p24 ;
  79. unsigned        p28 ;
  80. unsigned        p32[2] ;
  81. unsigned        p40 ;
  82. } kol_struct_BDVK ;
  83.  
  84. typedef struct
  85. {
  86. char    *name ;
  87. void    *data ;
  88. } kol_struct_import ;
  89.  
  90.  
  91.  
  92. kol_struct_import* kol_cofflib_load(char *name);
  93. void* kol_cofflib_procload (kol_struct_import *imp, char *name);
  94. unsigned kol_cofflib_procnum (kol_struct_import *imp);
  95. void kol_cofflib_procname (kol_struct_import *imp, char *name, unsigned n);
  96. int strcmp(const char* string1, const char* string2);