OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_FXGE_WIN32_WIN32_INT_H_ | 7 #ifndef CORE_FXGE_WIN32_WIN32_INT_H_ |
8 #define CORE_FXGE_WIN32_WIN32_INT_H_ | 8 #define CORE_FXGE_WIN32_WIN32_INT_H_ |
9 | 9 |
10 #include "core/fxge/win32/dwrite_int.h" | 10 #include "core/fxge/win32/dwrite_int.h" |
11 #include "core/include/fxge/fx_ge.h" | 11 #include "core/include/fxge/fx_ge.h" |
12 | 12 |
13 struct WINDIB_Open_Args_; | 13 struct WINDIB_Open_Args_; |
14 class CGdiplusExt { | 14 class CGdiplusExt { |
15 public: | 15 public: |
16 CGdiplusExt(); | 16 CGdiplusExt(); |
17 ~CGdiplusExt(); | 17 ~CGdiplusExt(); |
18 void Load(); | 18 void Load(); |
19 FX_BOOL IsAvailable() { return m_hModule != NULL; } | 19 FX_BOOL IsAvailable() { return m_hModule != NULL; } |
20 FX_BOOL StretchBitMask(HDC hDC, | 20 FX_BOOL StretchBitMask(HDC hDC, |
21 BOOL bMonoDevice, | 21 BOOL bMonoDevice, |
22 const CFX_DIBitmap* pBitmap, | 22 const CFX_DIBitmap* pBitmap, |
23 int dest_left, | 23 int dest_left, |
24 int dest_top, | 24 int dest_top, |
25 int dest_width, | 25 int dest_width, |
26 int dest_height, | 26 int dest_height, |
27 FX_DWORD argb, | 27 uint32_t argb, |
28 const FX_RECT* pClipRect, | 28 const FX_RECT* pClipRect, |
29 int flags); | 29 int flags); |
30 FX_BOOL StretchDIBits(HDC hDC, | 30 FX_BOOL StretchDIBits(HDC hDC, |
31 const CFX_DIBitmap* pBitmap, | 31 const CFX_DIBitmap* pBitmap, |
32 int dest_left, | 32 int dest_left, |
33 int dest_top, | 33 int dest_top, |
34 int dest_width, | 34 int dest_width, |
35 int dest_height, | 35 int dest_height, |
36 const FX_RECT* pClipRect, | 36 const FX_RECT* pClipRect, |
37 int flags); | 37 int flags); |
38 FX_BOOL DrawPath(HDC hDC, | 38 FX_BOOL DrawPath(HDC hDC, |
39 const CFX_PathData* pPathData, | 39 const CFX_PathData* pPathData, |
40 const CFX_Matrix* pObject2Device, | 40 const CFX_Matrix* pObject2Device, |
41 const CFX_GraphStateData* pGraphState, | 41 const CFX_GraphStateData* pGraphState, |
42 FX_DWORD fill_argb, | 42 uint32_t fill_argb, |
43 FX_DWORD stroke_argb, | 43 uint32_t stroke_argb, |
44 int fill_mode); | 44 int fill_mode); |
45 | 45 |
46 void* LoadMemFont(uint8_t* pData, FX_DWORD size); | 46 void* LoadMemFont(uint8_t* pData, uint32_t size); |
47 void DeleteMemFont(void* pFontCollection); | 47 void DeleteMemFont(void* pFontCollection); |
48 FX_BOOL GdipCreateFromImage(void* bitmap, void** graphics); | 48 FX_BOOL GdipCreateFromImage(void* bitmap, void** graphics); |
49 void GdipDeleteGraphics(void* graphics); | 49 void GdipDeleteGraphics(void* graphics); |
50 void GdipSetTextRenderingHint(void* graphics, int mode); | 50 void GdipSetTextRenderingHint(void* graphics, int mode); |
51 void GdipSetPageUnit(void* graphics, FX_DWORD unit); | 51 void GdipSetPageUnit(void* graphics, uint32_t unit); |
52 void GdipSetWorldTransform(void* graphics, void* pMatrix); | 52 void GdipSetWorldTransform(void* graphics, void* pMatrix); |
53 FX_BOOL GdipDrawDriverString(void* graphics, | 53 FX_BOOL GdipDrawDriverString(void* graphics, |
54 unsigned short* text, | 54 unsigned short* text, |
55 int length, | 55 int length, |
56 void* font, | 56 void* font, |
57 void* brush, | 57 void* brush, |
58 void* positions, | 58 void* positions, |
59 int flags, | 59 int flags, |
60 const void* matrix); | 60 const void* matrix); |
61 void GdipCreateBrush(FX_DWORD fill_argb, void** pBrush); | 61 void GdipCreateBrush(uint32_t fill_argb, void** pBrush); |
62 void GdipDeleteBrush(void* pBrush); | 62 void GdipDeleteBrush(void* pBrush); |
63 void GdipCreateMatrix(FX_FLOAT a, | 63 void GdipCreateMatrix(FX_FLOAT a, |
64 FX_FLOAT b, | 64 FX_FLOAT b, |
65 FX_FLOAT c, | 65 FX_FLOAT c, |
66 FX_FLOAT d, | 66 FX_FLOAT d, |
67 FX_FLOAT e, | 67 FX_FLOAT e, |
68 FX_FLOAT f, | 68 FX_FLOAT f, |
69 void** matrix); | 69 void** matrix); |
70 void GdipDeleteMatrix(void* matrix); | 70 void GdipDeleteMatrix(void* matrix); |
71 FX_BOOL GdipCreateFontFamilyFromName(const FX_WCHAR* name, | 71 FX_BOOL GdipCreateFontFamilyFromName(const FX_WCHAR* name, |
72 void* pFontCollection, | 72 void* pFontCollection, |
73 void** pFamily); | 73 void** pFamily); |
74 void GdipDeleteFontFamily(void* pFamily); | 74 void GdipDeleteFontFamily(void* pFamily); |
75 FX_BOOL GdipCreateFontFromFamily(void* pFamily, | 75 FX_BOOL GdipCreateFontFromFamily(void* pFamily, |
76 FX_FLOAT font_size, | 76 FX_FLOAT font_size, |
77 int fontstyle, | 77 int fontstyle, |
78 int flag, | 78 int flag, |
79 void** pFont); | 79 void** pFont); |
80 void* GdipCreateFontFromCollection(void* pFontCollection, | 80 void* GdipCreateFontFromCollection(void* pFontCollection, |
81 FX_FLOAT font_size, | 81 FX_FLOAT font_size, |
82 int fontstyle); | 82 int fontstyle); |
83 void GdipDeleteFont(void* pFont); | 83 void GdipDeleteFont(void* pFont); |
84 FX_BOOL GdipCreateBitmap(CFX_DIBitmap* pBitmap, void** bitmap); | 84 FX_BOOL GdipCreateBitmap(CFX_DIBitmap* pBitmap, void** bitmap); |
85 void GdipDisposeImage(void* bitmap); | 85 void GdipDisposeImage(void* bitmap); |
86 void GdipGetFontSize(void* pFont, FX_FLOAT* size); | 86 void GdipGetFontSize(void* pFont, FX_FLOAT* size); |
87 void* GdiAddFontMemResourceEx(void* pFontdata, | 87 void* GdiAddFontMemResourceEx(void* pFontdata, |
88 FX_DWORD size, | 88 uint32_t size, |
89 void* pdv, | 89 void* pdv, |
90 FX_DWORD* num_face); | 90 uint32_t* num_face); |
91 FX_BOOL GdiRemoveFontMemResourceEx(void* handle); | 91 FX_BOOL GdiRemoveFontMemResourceEx(void* handle); |
92 void* m_Functions[100]; | 92 void* m_Functions[100]; |
93 void* m_pGdiAddFontMemResourceEx; | 93 void* m_pGdiAddFontMemResourceEx; |
94 void* m_pGdiRemoveFontMemResourseEx; | 94 void* m_pGdiRemoveFontMemResourseEx; |
95 CFX_DIBitmap* LoadDIBitmap(WINDIB_Open_Args_ args); | 95 CFX_DIBitmap* LoadDIBitmap(WINDIB_Open_Args_ args); |
96 | 96 |
97 protected: | 97 protected: |
98 HMODULE m_hModule; | 98 HMODULE m_hModule; |
99 HMODULE m_GdiModule; | 99 HMODULE m_GdiModule; |
100 }; | 100 }; |
(...skipping 17 matching lines...) Expand all Loading... |
118 } | 118 } |
119 FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, | 119 FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, |
120 const CFX_Matrix* pObject2Device, | 120 const CFX_Matrix* pObject2Device, |
121 int fill_mode) override; | 121 int fill_mode) override; |
122 FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, | 122 FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, |
123 const CFX_Matrix* pObject2Device, | 123 const CFX_Matrix* pObject2Device, |
124 const CFX_GraphStateData* pGraphState) override; | 124 const CFX_GraphStateData* pGraphState) override; |
125 FX_BOOL DrawPath(const CFX_PathData* pPathData, | 125 FX_BOOL DrawPath(const CFX_PathData* pPathData, |
126 const CFX_Matrix* pObject2Device, | 126 const CFX_Matrix* pObject2Device, |
127 const CFX_GraphStateData* pGraphState, | 127 const CFX_GraphStateData* pGraphState, |
128 FX_DWORD fill_color, | 128 uint32_t fill_color, |
129 FX_DWORD stroke_color, | 129 uint32_t stroke_color, |
130 int fill_mode, | 130 int fill_mode, |
131 int alpha_flag, | 131 int alpha_flag, |
132 void* pIccTransform, | 132 void* pIccTransform, |
133 int blend_type) override; | 133 int blend_type) override; |
134 FX_BOOL FillRect(const FX_RECT* pRect, | 134 FX_BOOL FillRect(const FX_RECT* pRect, |
135 FX_DWORD fill_color, | 135 uint32_t fill_color, |
136 int alpha_flag, | 136 int alpha_flag, |
137 void* pIccTransform, | 137 void* pIccTransform, |
138 int blend_type) override; | 138 int blend_type) override; |
139 FX_BOOL DrawCosmeticLine(FX_FLOAT x1, | 139 FX_BOOL DrawCosmeticLine(FX_FLOAT x1, |
140 FX_FLOAT y1, | 140 FX_FLOAT y1, |
141 FX_FLOAT x2, | 141 FX_FLOAT x2, |
142 FX_FLOAT y2, | 142 FX_FLOAT y2, |
143 FX_DWORD color, | 143 uint32_t color, |
144 int alpha_flag, | 144 int alpha_flag, |
145 void* pIccTransform, | 145 void* pIccTransform, |
146 int blend_type) override; | 146 int blend_type) override; |
147 FX_BOOL GetClipBox(FX_RECT* pRect) override; | 147 FX_BOOL GetClipBox(FX_RECT* pRect) override; |
148 void* GetPlatformSurface() const override { return (void*)m_hDC; } | 148 void* GetPlatformSurface() const override { return (void*)m_hDC; } |
149 | 149 |
150 virtual void* GetClipRgn(); | 150 virtual void* GetClipRgn(); |
151 virtual FX_BOOL SetClipRgn(void* pRgn); | 151 virtual FX_BOOL SetClipRgn(void* pRgn); |
152 virtual FX_BOOL DeleteDeviceRgn(void* pRgn); | 152 virtual FX_BOOL DeleteDeviceRgn(void* pRgn); |
153 virtual void DrawLine(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2); | 153 virtual void DrawLine(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2); |
154 | 154 |
155 FX_BOOL GDI_SetDIBits(const CFX_DIBitmap* pBitmap, | 155 FX_BOOL GDI_SetDIBits(const CFX_DIBitmap* pBitmap, |
156 const FX_RECT* pSrcRect, | 156 const FX_RECT* pSrcRect, |
157 int left, | 157 int left, |
158 int top, | 158 int top, |
159 void* pIccTransform); | 159 void* pIccTransform); |
160 FX_BOOL GDI_StretchDIBits(const CFX_DIBitmap* pBitmap, | 160 FX_BOOL GDI_StretchDIBits(const CFX_DIBitmap* pBitmap, |
161 int dest_left, | 161 int dest_left, |
162 int dest_top, | 162 int dest_top, |
163 int dest_width, | 163 int dest_width, |
164 int dest_height, | 164 int dest_height, |
165 FX_DWORD flags, | 165 uint32_t flags, |
166 void* pIccTransform); | 166 void* pIccTransform); |
167 FX_BOOL GDI_StretchBitMask(const CFX_DIBitmap* pBitmap, | 167 FX_BOOL GDI_StretchBitMask(const CFX_DIBitmap* pBitmap, |
168 int dest_left, | 168 int dest_left, |
169 int dest_top, | 169 int dest_top, |
170 int dest_width, | 170 int dest_width, |
171 int dest_height, | 171 int dest_height, |
172 FX_DWORD bitmap_color, | 172 uint32_t bitmap_color, |
173 FX_DWORD flags, | 173 uint32_t flags, |
174 int alpha_flag, | 174 int alpha_flag, |
175 void* pIccTransform); | 175 void* pIccTransform); |
176 HDC m_hDC; | 176 HDC m_hDC; |
177 int m_Width, m_Height, m_nBitsPerPixel; | 177 int m_Width, m_Height, m_nBitsPerPixel; |
178 int m_DeviceClass, m_RenderCaps; | 178 int m_DeviceClass, m_RenderCaps; |
179 CGdiDeviceDriver(HDC hDC, int device_class); | 179 CGdiDeviceDriver(HDC hDC, int device_class); |
180 ~CGdiDeviceDriver() override {} | 180 ~CGdiDeviceDriver() override {} |
181 }; | 181 }; |
182 | 182 |
183 class CGdiDisplayDriver : public CGdiDeviceDriver { | 183 class CGdiDisplayDriver : public CGdiDeviceDriver { |
184 public: | 184 public: |
185 CGdiDisplayDriver(HDC hDC); | 185 CGdiDisplayDriver(HDC hDC); |
186 | 186 |
187 protected: | 187 protected: |
188 FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap, | 188 FX_BOOL GetDIBits(CFX_DIBitmap* pBitmap, |
189 int left, | 189 int left, |
190 int top, | 190 int top, |
191 void* pIccTransform = NULL, | 191 void* pIccTransform = NULL, |
192 FX_BOOL bDEdge = FALSE) override; | 192 FX_BOOL bDEdge = FALSE) override; |
193 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, | 193 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, |
194 FX_DWORD color, | 194 uint32_t color, |
195 const FX_RECT* pSrcRect, | 195 const FX_RECT* pSrcRect, |
196 int left, | 196 int left, |
197 int top, | 197 int top, |
198 int blend_type, | 198 int blend_type, |
199 int alpha_flag, | 199 int alpha_flag, |
200 void* pIccTransform) override; | 200 void* pIccTransform) override; |
201 FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, | 201 FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, |
202 FX_DWORD color, | 202 uint32_t color, |
203 int dest_left, | 203 int dest_left, |
204 int dest_top, | 204 int dest_top, |
205 int dest_width, | 205 int dest_width, |
206 int dest_height, | 206 int dest_height, |
207 const FX_RECT* pClipRect, | 207 const FX_RECT* pClipRect, |
208 FX_DWORD flags, | 208 uint32_t flags, |
209 int alpha_flag, | 209 int alpha_flag, |
210 void* pIccTransform, | 210 void* pIccTransform, |
211 int blend_type) override; | 211 int blend_type) override; |
212 FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, | 212 FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, |
213 int bitmap_alpha, | 213 int bitmap_alpha, |
214 FX_DWORD color, | 214 uint32_t color, |
215 const CFX_Matrix* pMatrix, | 215 const CFX_Matrix* pMatrix, |
216 FX_DWORD render_flags, | 216 uint32_t render_flags, |
217 void*& handle, | 217 void*& handle, |
218 int alpha_flag, | 218 int alpha_flag, |
219 void* pIccTransform, | 219 void* pIccTransform, |
220 int blend_type) override { | 220 int blend_type) override { |
221 return FALSE; | 221 return FALSE; |
222 } | 222 } |
223 FX_BOOL UseFoxitStretchEngine(const CFX_DIBSource* pSource, | 223 FX_BOOL UseFoxitStretchEngine(const CFX_DIBSource* pSource, |
224 FX_DWORD color, | 224 uint32_t color, |
225 int dest_left, | 225 int dest_left, |
226 int dest_top, | 226 int dest_top, |
227 int dest_width, | 227 int dest_width, |
228 int dest_height, | 228 int dest_height, |
229 const FX_RECT* pClipRect, | 229 const FX_RECT* pClipRect, |
230 int render_flags, | 230 int render_flags, |
231 int alpha_flag = 0, | 231 int alpha_flag = 0, |
232 void* pIccTransform = NULL, | 232 void* pIccTransform = NULL, |
233 int blend_type = FXDIB_BLEND_NORMAL); | 233 int blend_type = FXDIB_BLEND_NORMAL); |
234 }; | 234 }; |
235 class CGdiPrinterDriver : public CGdiDeviceDriver { | 235 class CGdiPrinterDriver : public CGdiDeviceDriver { |
236 public: | 236 public: |
237 CGdiPrinterDriver(HDC hDC); | 237 CGdiPrinterDriver(HDC hDC); |
238 | 238 |
239 protected: | 239 protected: |
240 int GetDeviceCaps(int caps_id) override; | 240 int GetDeviceCaps(int caps_id) override; |
241 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, | 241 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, |
242 FX_DWORD color, | 242 uint32_t color, |
243 const FX_RECT* pSrcRect, | 243 const FX_RECT* pSrcRect, |
244 int left, | 244 int left, |
245 int top, | 245 int top, |
246 int blend_type, | 246 int blend_type, |
247 int alpha_flag, | 247 int alpha_flag, |
248 void* pIccTransform) override; | 248 void* pIccTransform) override; |
249 FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, | 249 FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, |
250 FX_DWORD color, | 250 uint32_t color, |
251 int dest_left, | 251 int dest_left, |
252 int dest_top, | 252 int dest_top, |
253 int dest_width, | 253 int dest_width, |
254 int dest_height, | 254 int dest_height, |
255 const FX_RECT* pClipRect, | 255 const FX_RECT* pClipRect, |
256 FX_DWORD flags, | 256 uint32_t flags, |
257 int alpha_flag, | 257 int alpha_flag, |
258 void* pIccTransform, | 258 void* pIccTransform, |
259 int blend_type) override; | 259 int blend_type) override; |
260 FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, | 260 FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, |
261 int bitmap_alpha, | 261 int bitmap_alpha, |
262 FX_DWORD color, | 262 uint32_t color, |
263 const CFX_Matrix* pMatrix, | 263 const CFX_Matrix* pMatrix, |
264 FX_DWORD render_flags, | 264 uint32_t render_flags, |
265 void*& handle, | 265 void*& handle, |
266 int alpha_flag, | 266 int alpha_flag, |
267 void* pIccTransform, | 267 void* pIccTransform, |
268 int blend_type) override; | 268 int blend_type) override; |
269 int m_HorzSize, m_VertSize; | 269 int m_HorzSize, m_VertSize; |
270 FX_BOOL m_bSupportROP; | 270 FX_BOOL m_bSupportROP; |
271 }; | 271 }; |
272 | 272 |
273 class CPSOutput : public IFX_PSOutput { | 273 class CPSOutput : public IFX_PSOutput { |
274 public: | 274 public: |
(...skipping 26 matching lines...) Expand all Loading... |
301 void RestoreState(FX_BOOL bKeepSaved = FALSE) override; | 301 void RestoreState(FX_BOOL bKeepSaved = FALSE) override; |
302 FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, | 302 FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, |
303 const CFX_Matrix* pObject2Device, | 303 const CFX_Matrix* pObject2Device, |
304 int fill_mode) override; | 304 int fill_mode) override; |
305 FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, | 305 FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, |
306 const CFX_Matrix* pObject2Device, | 306 const CFX_Matrix* pObject2Device, |
307 const CFX_GraphStateData* pGraphState) override; | 307 const CFX_GraphStateData* pGraphState) override; |
308 FX_BOOL DrawPath(const CFX_PathData* pPathData, | 308 FX_BOOL DrawPath(const CFX_PathData* pPathData, |
309 const CFX_Matrix* pObject2Device, | 309 const CFX_Matrix* pObject2Device, |
310 const CFX_GraphStateData* pGraphState, | 310 const CFX_GraphStateData* pGraphState, |
311 FX_DWORD fill_color, | 311 uint32_t fill_color, |
312 FX_DWORD stroke_color, | 312 uint32_t stroke_color, |
313 int fill_mode, | 313 int fill_mode, |
314 int alpha_flag, | 314 int alpha_flag, |
315 void* pIccTransform, | 315 void* pIccTransform, |
316 int blend_type) override; | 316 int blend_type) override; |
317 FX_BOOL GetClipBox(FX_RECT* pRect) override; | 317 FX_BOOL GetClipBox(FX_RECT* pRect) override; |
318 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, | 318 FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap, |
319 FX_DWORD color, | 319 uint32_t color, |
320 const FX_RECT* pSrcRect, | 320 const FX_RECT* pSrcRect, |
321 int left, | 321 int left, |
322 int top, | 322 int top, |
323 int blend_type, | 323 int blend_type, |
324 int alpha_flag, | 324 int alpha_flag, |
325 void* pIccTransform) override; | 325 void* pIccTransform) override; |
326 FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, | 326 FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, |
327 FX_DWORD color, | 327 uint32_t color, |
328 int dest_left, | 328 int dest_left, |
329 int dest_top, | 329 int dest_top, |
330 int dest_width, | 330 int dest_width, |
331 int dest_height, | 331 int dest_height, |
332 const FX_RECT* pClipRect, | 332 const FX_RECT* pClipRect, |
333 FX_DWORD flags, | 333 uint32_t flags, |
334 int alpha_flag, | 334 int alpha_flag, |
335 void* pIccTransform, | 335 void* pIccTransform, |
336 int blend_type) override; | 336 int blend_type) override; |
337 FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, | 337 FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, |
338 int bitmap_alpha, | 338 int bitmap_alpha, |
339 FX_DWORD color, | 339 uint32_t color, |
340 const CFX_Matrix* pMatrix, | 340 const CFX_Matrix* pMatrix, |
341 FX_DWORD render_flags, | 341 uint32_t render_flags, |
342 void*& handle, | 342 void*& handle, |
343 int alpha_flag, | 343 int alpha_flag, |
344 void* pIccTransform, | 344 void* pIccTransform, |
345 int blend_type) override; | 345 int blend_type) override; |
346 FX_BOOL DrawDeviceText(int nChars, | 346 FX_BOOL DrawDeviceText(int nChars, |
347 const FXTEXT_CHARPOS* pCharPos, | 347 const FXTEXT_CHARPOS* pCharPos, |
348 CFX_Font* pFont, | 348 CFX_Font* pFont, |
349 CFX_FontCache* pCache, | 349 CFX_FontCache* pCache, |
350 const CFX_Matrix* pObject2Device, | 350 const CFX_Matrix* pObject2Device, |
351 FX_FLOAT font_size, | 351 FX_FLOAT font_size, |
352 FX_DWORD color, | 352 uint32_t color, |
353 int alpha_flag, | 353 int alpha_flag, |
354 void* pIccTransform) override; | 354 void* pIccTransform) override; |
355 void* GetPlatformSurface() const override { return (void*)m_hDC; } | 355 void* GetPlatformSurface() const override { return (void*)m_hDC; } |
356 | 356 |
357 HDC m_hDC; | 357 HDC m_hDC; |
358 FX_BOOL m_bCmykOutput; | 358 FX_BOOL m_bCmykOutput; |
359 int m_Width, m_Height, m_nBitsPerPixel; | 359 int m_Width, m_Height, m_nBitsPerPixel; |
360 int m_HorzSize, m_VertSize; | 360 int m_HorzSize, m_VertSize; |
361 CPSOutput* m_pPSOutput; | 361 CPSOutput* m_pPSOutput; |
362 CFX_PSRenderer m_PSRenderer; | 362 CFX_PSRenderer m_PSRenderer; |
363 }; | 363 }; |
364 void _Color2Argb(FX_ARGB& argb, | 364 void _Color2Argb(FX_ARGB& argb, |
365 FX_DWORD color, | 365 uint32_t color, |
366 int alpha_flag, | 366 int alpha_flag, |
367 void* pIccTransform); | 367 void* pIccTransform); |
368 | 368 |
369 #endif // CORE_FXGE_WIN32_WIN32_INT_H_ | 369 #endif // CORE_FXGE_WIN32_WIN32_INT_H_ |
OLD | NEW |