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 XFA_FDE_FDE_GEDEVICE_H_ | 7 #ifndef XFA_FDE_FDE_GEDEVICE_H_ |
8 #define XFA_FDE_FDE_GEDEVICE_H_ | 8 #define XFA_FDE_FDE_GEDEVICE_H_ |
9 | 9 |
10 #include "core/fxge/include/fx_ge.h" | 10 #include "core/fxge/include/cfx_renderdevice.h" |
11 #include "xfa/fgas/crt/fgas_memory.h" | 11 #include "xfa/fgas/crt/fgas_memory.h" |
12 | 12 |
13 class CFDE_Brush; | 13 class CFDE_Brush; |
14 class CFDE_Path; | 14 class CFDE_Path; |
15 class CFDE_Pen; | 15 class CFDE_Pen; |
16 class CFGAS_GEFont; | 16 class CFGAS_GEFont; |
| 17 class CFX_GraphStateData; |
17 | 18 |
18 class CFDE_RenderDevice : public CFX_Target { | 19 class CFDE_RenderDevice : public CFX_Target { |
19 public: | 20 public: |
20 CFDE_RenderDevice(CFX_RenderDevice* pDevice, FX_BOOL bOwnerDevice); | 21 CFDE_RenderDevice(CFX_RenderDevice* pDevice, FX_BOOL bOwnerDevice); |
21 ~CFDE_RenderDevice() override; | 22 ~CFDE_RenderDevice() override; |
22 | 23 |
23 int32_t GetWidth() const; | 24 int32_t GetWidth() const; |
24 int32_t GetHeight() const; | 25 int32_t GetHeight() const; |
25 void SaveState(); | 26 void SaveState(); |
26 void RestoreState(); | 27 void RestoreState(); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 FX_FLOAT fPenWidth, | 117 FX_FLOAT fPenWidth, |
117 CFX_GraphStateData& graphState); | 118 CFX_GraphStateData& graphState); |
118 | 119 |
119 CFX_RenderDevice* const m_pDevice; | 120 CFX_RenderDevice* const m_pDevice; |
120 CFX_RectF m_rtClip; | 121 CFX_RectF m_rtClip; |
121 FX_BOOL m_bOwnerDevice; | 122 FX_BOOL m_bOwnerDevice; |
122 int32_t m_iCharCount; | 123 int32_t m_iCharCount; |
123 }; | 124 }; |
124 | 125 |
125 #endif // XFA_FDE_FDE_GEDEVICE_H_ | 126 #endif // XFA_FDE_FDE_GEDEVICE_H_ |
OLD | NEW |