Leaked source code of windows server 2003
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.

207 lines
3.0 KiB

  1. /*++
  2. Copyright (c) 1990-2003 Microsoft Corporation
  3. Module Name:
  4. output.h
  5. Abstract:
  6. This module contains exported definitions for the output.c module
  7. Author:
  8. 16-Nov-1993 Tue 04:16:47 created
  9. [Environment:]
  10. GDI Device Driver - Plotter.
  11. [Notes:]
  12. Revision History:
  13. --*/
  14. #ifndef _PLOTOUTPUT_
  15. #define _PLOTOUTPUT_
  16. #define OUTPUT_BUFFER_SIZE (32 * 1024)
  17. #define HS_FT_USER_DEFINED (HS_DDI_MAX + 1)
  18. #define PLOT_LT_UNDEFINED 0
  19. #define PLOT_LT_SOLID 1
  20. #define PLOT_LT_USERDEFINED 2
  21. #define SETLINETYPESOLID(pPDev) \
  22. { \
  23. if ((pPDev)->LastLineType != PLOT_LT_SOLID) { \
  24. \
  25. (pPDev)->LastLineType = PLOT_LT_SOLID; \
  26. OutputString(pPDev, "LT"); \
  27. } \
  28. }
  29. #define SPP_MODE_CENTER 0x00
  30. #define SPP_MODE_EDGE 0x01
  31. #define SPP_MODE_MASK 0x01
  32. #define SPP_FORCE_SET 0x80
  33. LONG
  34. BestMatchNonWhitePen(
  35. PPDEV pPDev,
  36. LONG R,
  37. LONG G,
  38. LONG B
  39. );
  40. VOID
  41. GetFinalColor(
  42. PPDEV pPDev,
  43. PPALENTRY pPalEntry
  44. );
  45. LONG
  46. FindCachedPen(
  47. PPDEV pPDev,
  48. PPALENTRY pPalEntry
  49. );
  50. BOOL
  51. PlotCreatePalette(
  52. PPDEV pPDev
  53. );
  54. UINT
  55. AllocOutBuffer(
  56. PPDEV pPDev
  57. );
  58. VOID
  59. FreeOutBuffer(
  60. PPDEV pPDev
  61. );
  62. BOOL
  63. FlushOutBuffer(
  64. PPDEV pPDev
  65. );
  66. LONG
  67. OutputBytes(
  68. PPDEV pPDev,
  69. LPBYTE pBuf,
  70. LONG cBuf
  71. );
  72. LONG
  73. OutputString(
  74. PPDEV pPDev,
  75. LPSTR pszStr
  76. );
  77. LONG
  78. LONGToASCII(
  79. LONG Number,
  80. LPSTR pStr16,
  81. size_t cchStr16,
  82. BYTE NumType
  83. );
  84. LONG
  85. OutputXYParams(
  86. PPDEV pPDev,
  87. PPOINTL pPtXY,
  88. PPOINTL pPtOffset,
  89. PPOINTL pPtCurPos,
  90. UINT cPoints,
  91. UINT MaxCurPosSkips,
  92. BYTE NumType
  93. );
  94. LONG
  95. OutputLONGParams(
  96. PPDEV pPDev,
  97. PLONG pNumbers,
  98. UINT cNumber,
  99. BYTE NumType
  100. );
  101. LONG
  102. cdecl
  103. OutputFormatStrDELI(
  104. PPDEV pPDev,
  105. CHAR NumFormatChar,
  106. LPSTR pszFormat,
  107. ...
  108. );
  109. LONG
  110. cdecl
  111. OutputFormatStr(
  112. PPDEV pPDev,
  113. LPSTR pszFormat,
  114. ...
  115. );
  116. BOOL
  117. OutputCommaSep(
  118. PPDEV pPDev
  119. );
  120. VOID
  121. ClearClipWindow(
  122. PPDEV pPDev
  123. );
  124. VOID
  125. SetClipWindow(
  126. PPDEV pPDev,
  127. PRECTL pClipRectl
  128. );
  129. VOID
  130. SetPixelPlacement(
  131. PPDEV pPDev,
  132. UINT SetMode
  133. );
  134. BOOL
  135. SetRopMode(
  136. PPDEV pPDev,
  137. DWORD Rop
  138. );
  139. BOOL
  140. SetHSFillType(
  141. PPDEV pPDev,
  142. DWORD HSFillTypeIndex,
  143. LONG lParam
  144. );
  145. BOOL
  146. SendPageHeader(
  147. PPDEV pPDev
  148. );
  149. BOOL
  150. SendPageTrailer(
  151. PPDEV pPDev
  152. );
  153. #endif // _PLOTOUTPUT_