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" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 FX_DWORD 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() 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, |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 FX_DWORD color, |
353 int alpha_flag, | 353 int alpha_flag, |
354 void* pIccTransform) override; | 354 void* pIccTransform) override; |
355 void* GetPlatformSurface() 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 FX_DWORD 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 |