Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
7.5 KiB

  1. /*************************************************************************/
  2. /* ����������� ������ . */
  3. /*************************************************************************/
  4. #ifndef _DEF_H_
  5. #define _DEF_H_
  6. #define COLORSMALLGAM 3 /* Small gammas colour */
  7. /* */
  8. #define COLORGAM 2 /* Gammas colour. */
  9. /* */
  10. #define COLORCIRCLE 7 /* Circles colour. */
  11. /* */
  12. #define COLORMAX 9 /* Maximums colour . */
  13. /* */
  14. #define COLORMAXN 3 /* Maximums colour . */
  15. /* */
  16. #define COLORMIN 13 /* Minimums colour. */
  17. /* */
  18. #define COLORMINN 5 /* Minimums colour. */
  19. /* */
  20. #define COLORC 12 /* Intersections colour*/
  21. /* */
  22. #define COLOR 15 /* Main colour . */
  23. /* */
  24. #define COLORSH 10 /* Shelves colour . */
  25. /* */
  26. #define COLORT 14 /* Strokes colour . */
  27. /* */
  28. #define COLORP 11 /* Strokes colour . */
  29. /* */
  30. #define COLORAN 2 /* Angles colour . */
  31. #define COLORB 9 /* It's necessary... */
  32. /* */
  33. #define COLOR_FON 2 /* background colour */
  34. #define COLOR_UP 0 /* upper screen colour */
  35. #define COLOR_LABEL 14 /* label colour */
  36. #define COLOR_FRAME 10 /* common frame colour */
  37. #define COLOR_FRAME_UP 13 /* */
  38. #define COLOR_FRAME_TEXT 12 /* text frame colour */
  39. #define COLOR_TEXT_BACK 0 /* text screen colour */
  40. #define COLOR_TEXT 0 /* text colour */
  41. #define COLOR_MSG 14 /* message colour */
  42. #define COLOR_PENCIL 12 /* pencil colour */
  43. #define COLLIN 11 /* line colour .*/
  44. /* */
  45. #define SCR_MAXX 640 /* horizontal screen */
  46. #define SCR_MAXY 350 /* vertical screen */
  47. #ifdef FORMULA
  48. #define TABLET_MAXX 8000 /* */
  49. #define TABLET_MAXY 6000 /* */
  50. #else
  51. #define TABLET_MAXX 10000 /* */
  52. #define TABLET_MAXY 8000 /* */
  53. #endif /*FORMULA*/
  54. #define SHIFT_Y_TRANS 10000 /* shift along y axis */
  55. /* while setting scale */
  56. #define L_TOPX 13 /* left */
  57. #define L_TOPY 41 /* drawing */
  58. #define L_BOTX 313 /* window */
  59. #define L_BOTY 308 /* coordinates */
  60. #define R_TOPX 326 /* right */
  61. #define R_TOPY 41 /* drawing */
  62. #define R_BOTX 626 /* window */
  63. #define R_BOTY 308 /* coordinates */
  64. #define T_TOPX 1 /* text */
  65. #define T_BOTX 78 /* window */
  66. #define T_BOTY 24 /* coordinates */
  67. #define MSG_TOPX 17 /* x coord. of message line */
  68. #define MSG_TOPY 325 /* y coord. of message line */
  69. #define MSG_BOTX 628 /* x coord. of message line */
  70. #define MSG_BOTY 341 /* y coord. of message line */
  71. #define DLT 6 /* distance between screen */
  72. /* and frame */
  73. #define LIN_UP ( 54 +SHIFT_Y_TRANS) /* y coord. of superupper line */
  74. #define STR_UP (134 +SHIFT_Y_TRANS) /* y coord. of upper line */
  75. #define STR_DOWN (214 +SHIFT_Y_TRANS) /* y coord. of lower line*/
  76. #define LIN_DOWN (294 +SHIFT_Y_TRANS) /* y coord. of superlower line*/
  77. #define DY_STR ((_SHORT)(STR_DOWN-STR_UP))
  78. /* */
  79. #define DW 1 /* */
  80. /* */
  81. #define MX 3 /* x coordinate scale exponent */
  82. /* . ( M = 2**MX ) */
  83. #define MY 4 /* y coordinate scale exponent */
  84. /* Y . ( M = 2**MY ) */
  85. #define WTBX0 0 /* Coordinates of the beginning of */
  86. #define WTBY0 0 /* a window on a tablet */
  87. #define WTTX0 4640 /* Coordinates of the end of the */
  88. #define WTTY0 3020 /* a window on a tablet . */
  89. #define WTX0 0 /* Coordinates of the beginning of */
  90. #define WTY0 0 /* a window in a screen */
  91. #define WBX0 639 /* Coordibates of the end of */
  92. #define WBY0 349 /* a window in a screen . */
  93. #define STBX0 0 /* Coordinates of the beginning of */
  94. #define STBY0 0 /* a window on a tablet */
  95. #define STTX0 5850 /* Coordinates of the end of */
  96. #define STTY0 5850 /* a window on a tablet. */
  97. #define SSTX0 L_TOPX /* Coordinates of the beginning of */
  98. #define SSTY0 L_TOPY /* a window in a screen. */
  99. #define SSBX0 R_BOTX /* Coordinates of the end of */
  100. #define SSBY0 R_BOTY /* window in a screen */
  101. #define SDX 30 /* Coordinates of the window */
  102. #define SDY 80 /* shift in the screen . */
  103. #endif // _DEF_H_