| 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_SRC_FDE_FDE_GEOBJECT_H_ | 7 #ifndef XFA_FDE_FDE_GEOBJECT_H_ |
| 8 #define XFA_SRC_FDE_FDE_GEOBJECT_H_ | 8 #define XFA_FDE_FDE_GEOBJECT_H_ |
| 9 | 9 |
| 10 #include "core/include/fxge/fx_ge.h" | 10 #include "core/include/fxge/fx_ge.h" |
| 11 #include "xfa/src/fde/fde_path.h" | 11 #include "xfa/fde/fde_path.h" |
| 12 #include "xfa/src/fgas/crt/fgas_memory.h" | 12 #include "xfa/fgas/crt/fgas_memory.h" |
| 13 | 13 |
| 14 class CFDE_Path : public IFDE_Path, public CFX_Target { | 14 class CFDE_Path : public IFDE_Path, public CFX_Target { |
| 15 public: | 15 public: |
| 16 virtual void Release() { delete this; } | 16 virtual void Release() { delete this; } |
| 17 | 17 |
| 18 virtual FX_BOOL StartFigure(); | 18 virtual FX_BOOL StartFigure(); |
| 19 virtual FX_BOOL CloseFigure(); | 19 virtual FX_BOOL CloseFigure(); |
| 20 | 20 |
| 21 virtual void AddBezier(const CFX_PointsF& points); | 21 virtual void AddBezier(const CFX_PointsF& points); |
| 22 virtual void AddBeziers(const CFX_PointsF& points); | 22 virtual void AddBeziers(const CFX_PointsF& points); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 47 FX_FLOAT endAngle); | 47 FX_FLOAT endAngle); |
| 48 void MoveTo(const CFX_PointF& p0) { MoveTo(p0.x, p0.y); } | 48 void MoveTo(const CFX_PointF& p0) { MoveTo(p0.x, p0.y); } |
| 49 void LineTo(const CFX_PointF& p1) { LineTo(p1.x, p1.y); } | 49 void LineTo(const CFX_PointF& p1) { LineTo(p1.x, p1.y); } |
| 50 void GetCurveTangents(const CFX_PointsF& points, | 50 void GetCurveTangents(const CFX_PointsF& points, |
| 51 CFX_PointsF& tangents, | 51 CFX_PointsF& tangents, |
| 52 FX_BOOL bClosed, | 52 FX_BOOL bClosed, |
| 53 FX_FLOAT fTension) const; | 53 FX_FLOAT fTension) const; |
| 54 CFX_PathData m_Path; | 54 CFX_PathData m_Path; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif // XFA_SRC_FDE_FDE_GEOBJECT_H_ | 57 #endif // XFA_FDE_FDE_GEOBJECT_H_ |
| OLD | NEW |