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; | |
14 | |
15 class CFDE_Brush; | 13 class CFDE_Brush; |
16 class CFDE_Path; | 14 class CFDE_Path; |
17 class CFDE_Pen; | 15 class CFDE_Pen; |
18 class IFGAS_Font; | 16 class IFGAS_Font; |
19 | 17 |
20 class CFDE_RenderDevice : public CFX_Target { | 18 class CFDE_RenderDevice : public CFX_Target { |
21 public: | 19 public: |
22 CFDE_RenderDevice(CFX_RenderDevice* pDevice, FX_BOOL bOwnerDevice); | 20 CFDE_RenderDevice(CFX_RenderDevice* pDevice, FX_BOOL bOwnerDevice); |
23 ~CFDE_RenderDevice() override; | 21 ~CFDE_RenderDevice() override; |
24 | 22 |
25 int32_t GetWidth() const; | 23 int32_t GetWidth() const; |
26 int32_t GetHeight() const; | 24 int32_t GetHeight() const; |
27 FDE_HDEVICESTATE SaveState(); | 25 void SaveState(); |
28 void RestoreState(FDE_HDEVICESTATE hState); | 26 void RestoreState(); |
29 FX_BOOL SetClipPath(const CFDE_Path* pClip); | 27 FX_BOOL SetClipPath(const CFDE_Path* pClip); |
30 CFDE_Path* GetClipPath() const; | 28 CFDE_Path* GetClipPath() const; |
31 FX_BOOL SetClipRect(const CFX_RectF& rtClip); | 29 FX_BOOL SetClipRect(const CFX_RectF& rtClip); |
32 const CFX_RectF& GetClipRect(); | 30 const CFX_RectF& GetClipRect(); |
33 | 31 |
34 FX_FLOAT GetDpiX() const; | 32 FX_FLOAT GetDpiX() const; |
35 FX_FLOAT GetDpiY() const; | 33 FX_FLOAT GetDpiY() const; |
36 | 34 |
37 FX_BOOL DrawImage(CFX_DIBSource* pDib, | 35 FX_BOOL DrawImage(CFX_DIBSource* pDib, |
38 const CFX_RectF* pSrcRect, | 36 const CFX_RectF* pSrcRect, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 CFX_GraphStateData& graphState); | 117 CFX_GraphStateData& graphState); |
120 | 118 |
121 CFX_RenderDevice* m_pDevice; | 119 CFX_RenderDevice* m_pDevice; |
122 CFX_RectF m_rtClip; | 120 CFX_RectF m_rtClip; |
123 FX_BOOL m_bOwnerDevice; | 121 FX_BOOL m_bOwnerDevice; |
124 FXTEXT_CHARPOS* m_pCharPos; | 122 FXTEXT_CHARPOS* m_pCharPos; |
125 int32_t m_iCharCount; | 123 int32_t m_iCharCount; |
126 }; | 124 }; |
127 | 125 |
128 #endif // XFA_FDE_FDE_GEDEVICE_H_ | 126 #endif // XFA_FDE_FDE_GEDEVICE_H_ |
OLD | NEW |