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_RENDER_H_ | 7 #ifndef XFA_FDE_FDE_RENDER_H_ |
8 #define XFA_FDE_FDE_RENDER_H_ | 8 #define XFA_FDE_FDE_RENDER_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 17 matching lines...) Expand all Loading... |
28 CFDE_RenderContext(); | 28 CFDE_RenderContext(); |
29 ~CFDE_RenderContext() override; | 29 ~CFDE_RenderContext() override; |
30 | 30 |
31 FX_BOOL StartRender(CFDE_RenderDevice* pRenderDevice, | 31 FX_BOOL StartRender(CFDE_RenderDevice* pRenderDevice, |
32 IFDE_CanvasSet* pCanvasSet, | 32 IFDE_CanvasSet* pCanvasSet, |
33 const CFX_Matrix& tmDoc2Device); | 33 const CFX_Matrix& tmDoc2Device); |
34 FDE_RENDERSTATUS GetStatus() const { return m_eStatus; } | 34 FDE_RENDERSTATUS GetStatus() const { return m_eStatus; } |
35 FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = nullptr); | 35 FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = nullptr); |
36 void StopRender(); | 36 void StopRender(); |
37 void RenderText(IFDE_TextSet* pTextSet, FDE_HVISUALOBJ hText); | 37 void RenderText(IFDE_TextSet* pTextSet, FDE_HVISUALOBJ hText); |
38 FX_BOOL ApplyClip(IFDE_VisualSet* pVisualSet, | 38 FX_BOOL ApplyClip(IFDE_VisualSet* pVisualSet, FDE_HVISUALOBJ hObj); |
39 FDE_HVISUALOBJ hObj, | 39 void RestoreClip(); |
40 FDE_HDEVICESTATE& hState); | |
41 void RestoreClip(FDE_HDEVICESTATE hState); | |
42 | 40 |
43 protected: | 41 protected: |
44 FDE_RENDERSTATUS m_eStatus; | 42 FDE_RENDERSTATUS m_eStatus; |
45 CFDE_RenderDevice* m_pRenderDevice; | 43 CFDE_RenderDevice* m_pRenderDevice; |
46 CFX_Matrix m_Transform; | 44 CFX_Matrix m_Transform; |
47 FXTEXT_CHARPOS* m_pCharPos; | 45 FXTEXT_CHARPOS* m_pCharPos; |
48 int32_t m_iCharPosCount; | 46 int32_t m_iCharPosCount; |
49 std::unique_ptr<CFDE_Brush> m_pBrush; | 47 std::unique_ptr<CFDE_Brush> m_pBrush; |
50 std::unique_ptr<CFDE_VisualSetIterator> m_pIterator; | 48 std::unique_ptr<CFDE_VisualSetIterator> m_pIterator; |
51 }; | 49 }; |
52 | 50 |
53 #endif // XFA_FDE_FDE_RENDER_H_ | 51 #endif // XFA_FDE_FDE_RENDER_H_ |
OLD | NEW |