Subversion Repositories Kolibri OS

Rev

Rev 7503 | 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_DrawRegion(Word x, Word y,Word width, Word height, Dword color1, Word invert);
  55. void kos_DrawCutTextSmall(Word x, Word y, int areaWidth, Dword textColour, char *textPtr);
  56. int atoi(const char* string);
  57. int toupper(int c);
  58. int strnicmp(const char* string1, const char* string2, unsigned count);
  59. void kos_GetScrollInfo(int &vert, int &hor);
  60.  
  61.  
  62. Dword kos_GetSlotByPID(Dword PID);
  63. Dword kos_GetActiveSlot();
  64. Dword kos_GetSkinHeight();
  65. Dword kos_GetSpecialKeyState();
  66.  
  67.  
  68. double fabs(double x);
  69. double cos(double x);
  70. double sin(double x);
  71. bool isalpha(char c);
  72. double convert(char *s, int *len=NULL);
  73. void format( char *Str, int len, char* Format, ... );
  74.  
  75. void line( int x1, int y1, int x2, int y2);
  76.  
  77. void outtextxy( int x, int y, char *s, int len);
  78. void settextstyle( int a1, int a2, int a3);
  79.  
  80.  
  81. double textwidth( char *s, int len);
  82. double textheight( char *s, int len);
  83. void setcolor( DWORD color);
  84. void unsetcolor(HDC hdc);
  85. void rectangle( int x1, int y1, int x2, int y2);
  86.  
  87. typedef struct
  88. {
  89. unsigned        p00 ;
  90. unsigned        p04 ;
  91. unsigned        p08 ;
  92. unsigned        p12 ;
  93. unsigned        p16 ;
  94. char            p20 ;
  95. char            *p21 ;
  96. } kol_struct70 ;
  97.  
  98.  
  99. typedef struct
  100. {
  101. unsigned        p00 ;
  102. char            p04 ;
  103. char            p05[3] ;
  104. unsigned        p08 ;
  105. unsigned        p12 ;
  106. unsigned        p16 ;
  107. unsigned        p20 ;
  108. unsigned        p24 ;
  109. unsigned        p28 ;
  110. unsigned        p32[2] ;
  111. unsigned        p40 ;
  112. } kol_struct_BDVK ;
  113.  
  114. typedef struct
  115. {
  116. char    *name ;
  117. void    *data ;
  118. } kol_struct_import ;
  119.  
  120.  
  121.  
  122. kol_struct_import* kol_cofflib_load(char *name);
  123. void* kol_cofflib_procload (kol_struct_import *imp, char *name);
  124. unsigned kol_cofflib_procnum (kol_struct_import *imp);
  125. void kol_cofflib_procname (kol_struct_import *imp, char *name, unsigned n);
  126. int strcmp(const char* string1, const char* string2);
  127.  
  128. char *ftoa(double d);
  129. double atof(char *s);
  130.  
  131.  
  132. int di(double x);
  133. double id(int x);
  134.