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 <vector> |
| 11 |
10 #include "core/fxge/cfx_renderdevice.h" | 12 #include "core/fxge/cfx_renderdevice.h" |
11 #include "xfa/fgas/font/cfgas_gefont.h" | 13 #include "xfa/fgas/font/cfgas_gefont.h" |
12 | 14 |
13 class CFDE_Brush; | 15 class CFDE_Brush; |
14 class CFDE_Path; | 16 class CFDE_Path; |
15 class CFDE_Pen; | 17 class CFDE_Pen; |
16 class CFX_GraphStateData; | 18 class CFX_GraphStateData; |
17 | 19 |
18 class CFDE_RenderDevice { | 20 class CFDE_RenderDevice { |
19 public: | 21 public: |
(...skipping 25 matching lines...) Expand all Loading... |
45 const CFX_Matrix* pMatrix = nullptr); | 47 const CFX_Matrix* pMatrix = nullptr); |
46 bool DrawBezier(CFDE_Pen* pPen, | 48 bool DrawBezier(CFDE_Pen* pPen, |
47 FX_FLOAT fPenWidth, | 49 FX_FLOAT fPenWidth, |
48 const CFX_PointF& pt1, | 50 const CFX_PointF& pt1, |
49 const CFX_PointF& pt2, | 51 const CFX_PointF& pt2, |
50 const CFX_PointF& pt3, | 52 const CFX_PointF& pt3, |
51 const CFX_PointF& pt4, | 53 const CFX_PointF& pt4, |
52 const CFX_Matrix* pMatrix = nullptr); | 54 const CFX_Matrix* pMatrix = nullptr); |
53 bool DrawCurve(CFDE_Pen* pPen, | 55 bool DrawCurve(CFDE_Pen* pPen, |
54 FX_FLOAT fPenWidth, | 56 FX_FLOAT fPenWidth, |
55 const CFX_PointsF& points, | 57 const std::vector<CFX_PointF>& points, |
56 bool bClosed, | 58 bool bClosed, |
57 FX_FLOAT fTension = 0.5f, | 59 FX_FLOAT fTension = 0.5f, |
58 const CFX_Matrix* pMatrix = nullptr); | 60 const CFX_Matrix* pMatrix = nullptr); |
59 bool DrawEllipse(CFDE_Pen* pPen, | 61 bool DrawEllipse(CFDE_Pen* pPen, |
60 FX_FLOAT fPenWidth, | 62 FX_FLOAT fPenWidth, |
61 const CFX_RectF& rect, | 63 const CFX_RectF& rect, |
62 const CFX_Matrix* pMatrix = nullptr); | 64 const CFX_Matrix* pMatrix = nullptr); |
63 bool DrawLines(CFDE_Pen* pPen, | 65 bool DrawLines(CFDE_Pen* pPen, |
64 FX_FLOAT fPenWidth, | 66 FX_FLOAT fPenWidth, |
65 const CFX_PointsF& points, | 67 const std::vector<CFX_PointF>& points, |
66 const CFX_Matrix* pMatrix = nullptr); | 68 const CFX_Matrix* pMatrix = nullptr); |
67 bool DrawLine(CFDE_Pen* pPen, | 69 bool DrawLine(CFDE_Pen* pPen, |
68 FX_FLOAT fPenWidth, | 70 FX_FLOAT fPenWidth, |
69 const CFX_PointF& pt1, | 71 const CFX_PointF& pt1, |
70 const CFX_PointF& pt2, | 72 const CFX_PointF& pt2, |
71 const CFX_Matrix* pMatrix = nullptr); | 73 const CFX_Matrix* pMatrix = nullptr); |
72 bool DrawPath(CFDE_Pen* pPen, | 74 bool DrawPath(CFDE_Pen* pPen, |
73 FX_FLOAT fPenWidth, | 75 FX_FLOAT fPenWidth, |
74 const CFDE_Path* pPath, | 76 const CFDE_Path* pPath, |
75 const CFX_Matrix* pMatrix = nullptr); | 77 const CFX_Matrix* pMatrix = nullptr); |
76 bool DrawPolygon(CFDE_Pen* pPen, | 78 bool DrawPolygon(CFDE_Pen* pPen, |
77 FX_FLOAT fPenWidth, | 79 FX_FLOAT fPenWidth, |
78 const CFX_PointsF& points, | 80 const std::vector<CFX_PointF>& points, |
79 const CFX_Matrix* pMatrix = nullptr); | 81 const CFX_Matrix* pMatrix = nullptr); |
80 bool DrawRectangle(CFDE_Pen* pPen, | 82 bool DrawRectangle(CFDE_Pen* pPen, |
81 FX_FLOAT fPenWidth, | 83 FX_FLOAT fPenWidth, |
82 const CFX_RectF& rect, | 84 const CFX_RectF& rect, |
83 const CFX_Matrix* pMatrix = nullptr); | 85 const CFX_Matrix* pMatrix = nullptr); |
84 bool FillClosedCurve(CFDE_Brush* pBrush, | 86 bool FillClosedCurve(CFDE_Brush* pBrush, |
85 const CFX_PointsF& points, | 87 const std::vector<CFX_PointF>& points, |
86 FX_FLOAT fTension = 0.5f, | 88 FX_FLOAT fTension = 0.5f, |
87 const CFX_Matrix* pMatrix = nullptr); | 89 const CFX_Matrix* pMatrix = nullptr); |
88 bool FillEllipse(CFDE_Brush* pBrush, | 90 bool FillEllipse(CFDE_Brush* pBrush, |
89 const CFX_RectF& rect, | 91 const CFX_RectF& rect, |
90 const CFX_Matrix* pMatrix = nullptr); | 92 const CFX_Matrix* pMatrix = nullptr); |
91 bool FillPath(CFDE_Brush* pBrush, | 93 bool FillPath(CFDE_Brush* pBrush, |
92 const CFDE_Path* pPath, | 94 const CFDE_Path* pPath, |
93 const CFX_Matrix* pMatrix = nullptr); | 95 const CFX_Matrix* pMatrix = nullptr); |
94 bool FillPolygon(CFDE_Brush* pBrush, | 96 bool FillPolygon(CFDE_Brush* pBrush, |
95 const CFX_PointsF& points, | 97 const std::vector<CFX_PointF>& points, |
96 const CFX_Matrix* pMatrix = nullptr); | 98 const CFX_Matrix* pMatrix = nullptr); |
97 bool FillRectangle(CFDE_Brush* pBrush, | 99 bool FillRectangle(CFDE_Brush* pBrush, |
98 const CFX_RectF& rect, | 100 const CFX_RectF& rect, |
99 const CFX_Matrix* pMatrix = nullptr); | 101 const CFX_Matrix* pMatrix = nullptr); |
100 | 102 |
101 bool DrawSolidString(CFDE_Brush* pBrush, | 103 bool DrawSolidString(CFDE_Brush* pBrush, |
102 const CFX_RetainPtr<CFGAS_GEFont>& pFont, | 104 const CFX_RetainPtr<CFGAS_GEFont>& pFont, |
103 const FXTEXT_CHARPOS* pCharPos, | 105 const FXTEXT_CHARPOS* pCharPos, |
104 int32_t iCount, | 106 int32_t iCount, |
105 FX_FLOAT fFontSize, | 107 FX_FLOAT fFontSize, |
(...skipping 10 matching lines...) Expand all Loading... |
116 FX_FLOAT fPenWidth, | 118 FX_FLOAT fPenWidth, |
117 CFX_GraphStateData& graphState); | 119 CFX_GraphStateData& graphState); |
118 | 120 |
119 CFX_RenderDevice* const m_pDevice; | 121 CFX_RenderDevice* const m_pDevice; |
120 CFX_RectF m_rtClip; | 122 CFX_RectF m_rtClip; |
121 bool m_bOwnerDevice; | 123 bool m_bOwnerDevice; |
122 int32_t m_iCharCount; | 124 int32_t m_iCharCount; |
123 }; | 125 }; |
124 | 126 |
125 #endif // XFA_FDE_FDE_GEDEVICE_H_ | 127 #endif // XFA_FDE_FDE_GEDEVICE_H_ |
OLD | NEW |