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_INCLUDE_FXGE_FX_GE_WIN32_H_ | 7 #ifndef CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ |
8 #define CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ | 8 #define CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ |
9 | 9 |
10 #ifdef _WIN32 | 10 #ifdef _WIN32 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 HDC m_hMemDC; | 66 HDC m_hMemDC; |
67 | 67 |
68 HBITMAP m_hBitmap; | 68 HBITMAP m_hBitmap; |
69 | 69 |
70 HBITMAP m_hOldBitmap; | 70 HBITMAP m_hOldBitmap; |
71 }; | 71 }; |
72 class CFX_WindowsDevice : public CFX_RenderDevice | 72 class CFX_WindowsDevice : public CFX_RenderDevice |
73 { | 73 { |
74 public: | 74 public: |
75 static IFX_RenderDeviceDriver*» CreateDriver(HDC hDC, FX_BOOL bCmykOutpu
t = FALSE); | 75 static IFX_RenderDeviceDriver*» CreateDriver(HDC hDC, bool bCmykOutput =
false); |
76 | 76 |
77 CFX_WindowsDevice(HDC hDC, FX_BOOL bCmykOutput = FALSE, FX_BOOL bForcePSOutp
ut = FALSE, int psLevel = 2); | 77 CFX_WindowsDevice(HDC hDC, bool bCmykOutput = false, bool bForcePSOutput = f
alse, int psLevel = 2); |
78 | 78 |
79 HDC GetDC() const; | 79 HDC GetDC() const; |
80 | 80 |
81 FX_BOOL m_bForcePSOutput; | 81 bool m_bForcePSOutput; |
82 | 82 |
83 static int m_psLevel; | 83 static int m_psLevel; |
84 }; | 84 }; |
85 class CFX_WinBitmapDevice : public CFX_RenderDevice | 85 class CFX_WinBitmapDevice : public CFX_RenderDevice |
86 { | 86 { |
87 public: | 87 public: |
88 | 88 |
89 CFX_WinBitmapDevice(int width, int height, FXDIB_Format format); | 89 CFX_WinBitmapDevice(int width, int height, FXDIB_Format format); |
90 | 90 |
91 ~CFX_WinBitmapDevice(); | 91 ~CFX_WinBitmapDevice(); |
92 | 92 |
93 HDC GetDC() | 93 HDC GetDC() |
94 { | 94 { |
95 return m_hDC; | 95 return m_hDC; |
96 } | 96 } |
97 protected: | 97 protected: |
98 | 98 |
99 HBITMAP m_hBitmap; | 99 HBITMAP m_hBitmap; |
100 | 100 |
101 HBITMAP m_hOldBitmap; | 101 HBITMAP m_hOldBitmap; |
102 | 102 |
103 HDC m_hDC; | 103 HDC m_hDC; |
104 }; | 104 }; |
105 #endif | 105 #endif |
106 | 106 |
107 #endif // CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ | 107 #endif // CORE_INCLUDE_FXGE_FX_GE_WIN32_H_ |
OLD | NEW |