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/fx_ge.h" |
11 #include "xfa/fgas/crt/fgas_memory.h" | 11 #include "xfa/fgas/crt/fgas_memory.h" |
12 | 12 |
13 typedef struct FDE_HDEVICESTATE_ { void* pData; } * FDE_HDEVICESTATE; | 13 typedef struct FDE_HDEVICESTATE_ { void* pData; } * FDE_HDEVICESTATE; |
14 | 14 |
15 class CFDE_Brush; | 15 class CFDE_Brush; |
16 class CFDE_Path; | 16 class CFDE_Path; |
17 class CFDE_Pen; | 17 class CFDE_Pen; |
18 class CFX_RenderDevice; | |
19 class IFX_Font; | 18 class IFX_Font; |
20 | 19 |
21 class CFDE_RenderDevice : public CFX_Target { | 20 class CFDE_RenderDevice : public CFX_Target { |
22 public: | 21 public: |
23 CFDE_RenderDevice(CFX_RenderDevice* pDevice, FX_BOOL bOwnerDevice); | 22 CFDE_RenderDevice(CFX_RenderDevice* pDevice, FX_BOOL bOwnerDevice); |
24 ~CFDE_RenderDevice() override; | 23 ~CFDE_RenderDevice() override; |
25 | 24 |
26 int32_t GetWidth() const; | 25 int32_t GetWidth() const; |
27 int32_t GetHeight() const; | 26 int32_t GetHeight() const; |
28 FDE_HDEVICESTATE SaveState(); | 27 FDE_HDEVICESTATE SaveState(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 CFX_GraphStateData& graphState); | 119 CFX_GraphStateData& graphState); |
121 | 120 |
122 CFX_RenderDevice* m_pDevice; | 121 CFX_RenderDevice* m_pDevice; |
123 CFX_RectF m_rtClip; | 122 CFX_RectF m_rtClip; |
124 FX_BOOL m_bOwnerDevice; | 123 FX_BOOL m_bOwnerDevice; |
125 FXTEXT_CHARPOS* m_pCharPos; | 124 FXTEXT_CHARPOS* m_pCharPos; |
126 int32_t m_iCharCount; | 125 int32_t m_iCharCount; |
127 }; | 126 }; |
128 | 127 |
129 #endif // XFA_FDE_FDE_GEDEVICE_H_ | 128 #endif // XFA_FDE_FDE_GEDEVICE_H_ |
OLD | NEW |