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; | 18 class CFX_RenderDevice; |
19 class IFX_Font; | 19 class IFX_Font; |
20 | 20 |
21 class CFDE_RenderDevice : public CFX_Target { | 21 class CFDE_RenderDevice : public CFX_Target { |
22 public: | 22 public: |
23 CFDE_RenderDevice(CFX_RenderDevice* pDevice, FX_BOOL bOwnerDevice); | 23 CFDE_RenderDevice(CFX_RenderDevice* pDevice, FX_BOOL bOwnerDevice); |
24 ~CFDE_RenderDevice(); | 24 ~CFDE_RenderDevice() override; |
25 | |
26 void Release() { delete this; } | |
27 | 25 |
28 int32_t GetWidth() const; | 26 int32_t GetWidth() const; |
29 int32_t GetHeight() const; | 27 int32_t GetHeight() const; |
30 FDE_HDEVICESTATE SaveState(); | 28 FDE_HDEVICESTATE SaveState(); |
31 void RestoreState(FDE_HDEVICESTATE hState); | 29 void RestoreState(FDE_HDEVICESTATE hState); |
32 FX_BOOL SetClipPath(const CFDE_Path* pClip); | 30 FX_BOOL SetClipPath(const CFDE_Path* pClip); |
33 CFDE_Path* GetClipPath() const; | 31 CFDE_Path* GetClipPath() const; |
34 FX_BOOL SetClipRect(const CFX_RectF& rtClip); | 32 FX_BOOL SetClipRect(const CFX_RectF& rtClip); |
35 const CFX_RectF& GetClipRect(); | 33 const CFX_RectF& GetClipRect(); |
36 | 34 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 CFX_GraphStateData& graphState); | 120 CFX_GraphStateData& graphState); |
123 | 121 |
124 CFX_RenderDevice* m_pDevice; | 122 CFX_RenderDevice* m_pDevice; |
125 CFX_RectF m_rtClip; | 123 CFX_RectF m_rtClip; |
126 FX_BOOL m_bOwnerDevice; | 124 FX_BOOL m_bOwnerDevice; |
127 FXTEXT_CHARPOS* m_pCharPos; | 125 FXTEXT_CHARPOS* m_pCharPos; |
128 int32_t m_iCharCount; | 126 int32_t m_iCharCount; |
129 }; | 127 }; |
130 | 128 |
131 #endif // XFA_FDE_FDE_GEDEVICE_H_ | 129 #endif // XFA_FDE_FDE_GEDEVICE_H_ |
OLD | NEW |