Subversion Repositories Kolibri OS

Rev

Rev 7503 | Go to most recent revision | 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 min(a,b) (((a)<(b))?(a):(b))
  12. #define max(a,b) (((a)>(b))?(a):(b))
  13.  
  14.  
  15. #define ERROR -1
  16. #define ERROR_END -2
  17.  
  18. extern int convert_error;
  19.  
  20. #define PREC 2
  21.  
  22. typedef int HDC;
  23. typedef int DWORD;
  24.  
  25. extern int SysColor;
  26. extern char debuf[50];
  27.  
  28. typedef double (*function_t)(double);
  29.  
  30. typedef struct
  31. {
  32.   double x, y;
  33. } TCoord;
  34.  
  35. struct kosBDVK
  36. {
  37.         Dword attrib;
  38.         Dword name_type;
  39.         Dword create_time;
  40.         Dword create_date;
  41.         Dword access_time;
  42.         Dword access_date;
  43.         Dword modify_time;
  44.         Dword modify_date;
  45.         Dword size_low;
  46.         Dword size_high;       
  47. };
  48.  
  49. Dword kos_GetSlotByPID(Dword PID);
  50. Dword kos_GetActiveSlot();
  51. Dword kos_GetSkinHeight();
  52. Dword kos_GetSpecialKeyState();
  53. void kos_GetMouseStateWnd( Dword & buttons, int & cursorX, int & cursorY );
  54. void kos_DrawLine( Word x1, Word y1, Word x2, Word y2, Dword colour, Dword invert);
  55. void DrawRegion(Dword x,Dword y,Dword width,Dword height,Dword color1);
  56. int atoi(const char* string);
  57. void kos_GetScrollInfo(int &vert, int &hor);
  58.  
  59.  
  60. Dword kos_GetSlotByPID(Dword PID);
  61. Dword kos_GetActiveSlot();
  62. Dword kos_GetSkinHeight();
  63. Dword kos_GetSpecialKeyState();
  64.  
  65.  
  66. double fabs(double x);
  67. double cos(double x);
  68. double sin(double x);
  69. bool isalpha(char c);
  70. double convert(char *s, int *len=NULL);
  71. void format( char *Str, int len, char* Format, ... );
  72.  
  73. void line( int x1, int y1, int x2, int y2);
  74.  
  75. void outtextxy( int x, int y, char *s, int len);
  76. void settextstyle( int a1, int a2, int a3);
  77.  
  78.  
  79. double textwidth( char *s, int len);
  80. double textheight( char *s, int len);
  81. void setcolor( DWORD color);
  82. void unsetcolor(HDC hdc);
  83. void rectangle( int x1, int y1, int x2, int y2);
  84.  
  85. typedef struct
  86. {
  87. unsigned        p00 ;
  88. unsigned        p04 ;
  89. unsigned        p08 ;
  90. unsigned        p12 ;
  91. unsigned        p16 ;
  92. char            p20 ;
  93. char            *p21 ;
  94. } kol_struct70 ;
  95.  
  96.  
  97. typedef struct
  98. {
  99. unsigned        p00 ;
  100. char            p04 ;
  101. char            p05[3] ;
  102. unsigned        p08 ;
  103. unsigned        p12 ;
  104. unsigned        p16 ;
  105. unsigned        p20 ;
  106. unsigned        p24 ;
  107. unsigned        p28 ;
  108. unsigned        p32[2] ;
  109. unsigned        p40 ;
  110. } kol_struct_BDVK ;
  111.  
  112. typedef struct
  113. {
  114. char    *name ;
  115. void    *data ;
  116. } kol_struct_import ;
  117.  
  118.  
  119.  
  120. kol_struct_import* kol_cofflib_load(char *name);
  121. void* kol_cofflib_procload (kol_struct_import *imp, char *name);
  122. unsigned kol_cofflib_procnum (kol_struct_import *imp);
  123. void kol_cofflib_procname (kol_struct_import *imp, char *name, unsigned n);
  124. int strcmp(const char* string1, const char* string2);
  125.  
  126. char *ftoa(double d);
  127. double atof(char *s);
  128.  
  129.  
  130. int di(double x);
  131. double id(int x);
  132.