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_CFDE_PATH_H_ | 7 #ifndef XFA_FDE_CFDE_PATH_H_ |
8 #define XFA_FDE_CFDE_PATH_H_ | 8 #define XFA_FDE_CFDE_PATH_H_ |
9 | 9 |
| 10 #include "core/fxge/include/cfx_pathdata.h" |
10 #include "core/fxge/include/fx_ge.h" | 11 #include "core/fxge/include/fx_ge.h" |
11 #include "xfa/fgas/crt/fgas_memory.h" | 12 #include "xfa/fgas/crt/fgas_memory.h" |
12 | 13 |
13 class CFDE_Path : public CFX_Target { | 14 class CFDE_Path : public CFX_Target { |
14 public: | 15 public: |
15 FX_BOOL StartFigure(); | 16 FX_BOOL StartFigure(); |
16 FX_BOOL CloseFigure(); | 17 FX_BOOL CloseFigure(); |
17 | 18 |
18 void AddBezier(const CFX_PointsF& points); | 19 void AddBezier(const CFX_PointsF& points); |
19 void AddBeziers(const CFX_PointsF& points); | 20 void AddBeziers(const CFX_PointsF& points); |
(...skipping 25 matching lines...) Expand all Loading... |
45 void MoveTo(const CFX_PointF& p0) { MoveTo(p0.x, p0.y); } | 46 void MoveTo(const CFX_PointF& p0) { MoveTo(p0.x, p0.y); } |
46 void LineTo(const CFX_PointF& p1) { LineTo(p1.x, p1.y); } | 47 void LineTo(const CFX_PointF& p1) { LineTo(p1.x, p1.y); } |
47 void GetCurveTangents(const CFX_PointsF& points, | 48 void GetCurveTangents(const CFX_PointsF& points, |
48 CFX_PointsF& tangents, | 49 CFX_PointsF& tangents, |
49 FX_BOOL bClosed, | 50 FX_BOOL bClosed, |
50 FX_FLOAT fTension) const; | 51 FX_FLOAT fTension) const; |
51 CFX_PathData m_Path; | 52 CFX_PathData m_Path; |
52 }; | 53 }; |
53 | 54 |
54 #endif // XFA_FDE_CFDE_PATH_H_ | 55 #endif // XFA_FDE_CFDE_PATH_H_ |
OLD | NEW |