| 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_PATH_H_ | 7 #ifndef XFA_FDE_FDE_PATH_H_ |
| 8 #define XFA_SRC_FDE_FDE_PATH_H_ | 8 #define XFA_FDE_FDE_PATH_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_coordinates.h" | 10 #include "core/include/fxcrt/fx_coordinates.h" |
| 11 #include "core/include/fxcrt/fx_system.h" | 11 #include "core/include/fxcrt/fx_system.h" |
| 12 | 12 |
| 13 class IFDE_Path { | 13 class IFDE_Path { |
| 14 public: | 14 public: |
| 15 static IFDE_Path* Create(); | 15 static IFDE_Path* Create(); |
| 16 virtual ~IFDE_Path() {} | 16 virtual ~IFDE_Path() {} |
| 17 virtual void Release() = 0; | 17 virtual void Release() = 0; |
| 18 virtual FX_BOOL StartFigure() = 0; | 18 virtual FX_BOOL StartFigure() = 0; |
| 19 virtual FX_BOOL CloseFigure() = 0; | 19 virtual FX_BOOL CloseFigure() = 0; |
| 20 virtual void AddBezier(const CFX_PointsF& points) = 0; | 20 virtual void AddBezier(const CFX_PointsF& points) = 0; |
| 21 virtual void AddBeziers(const CFX_PointsF& points) = 0; | 21 virtual void AddBeziers(const CFX_PointsF& points) = 0; |
| 22 virtual void AddCurve(const CFX_PointsF& points, | 22 virtual void AddCurve(const CFX_PointsF& points, |
| 23 FX_BOOL bClosed, | 23 FX_BOOL bClosed, |
| 24 FX_FLOAT fTension = 0.5f) = 0; | 24 FX_FLOAT fTension = 0.5f) = 0; |
| 25 virtual void AddEllipse(const CFX_RectF& rect) = 0; | 25 virtual void AddEllipse(const CFX_RectF& rect) = 0; |
| 26 virtual void AddLines(const CFX_PointsF& points) = 0; | 26 virtual void AddLines(const CFX_PointsF& points) = 0; |
| 27 virtual void AddLine(const CFX_PointF& pt1, const CFX_PointF& pt2) = 0; | 27 virtual void AddLine(const CFX_PointF& pt1, const CFX_PointF& pt2) = 0; |
| 28 virtual void AddPath(const IFDE_Path* pSrc, FX_BOOL bConnect) = 0; | 28 virtual void AddPath(const IFDE_Path* pSrc, FX_BOOL bConnect) = 0; |
| 29 virtual void AddPolygon(const CFX_PointsF& points) = 0; | 29 virtual void AddPolygon(const CFX_PointsF& points) = 0; |
| 30 virtual void AddRectangle(const CFX_RectF& rect) = 0; | 30 virtual void AddRectangle(const CFX_RectF& rect) = 0; |
| 31 virtual void GetBBox(CFX_RectF& bbox) const = 0; | 31 virtual void GetBBox(CFX_RectF& bbox) const = 0; |
| 32 virtual void GetBBox(CFX_RectF& bbox, | 32 virtual void GetBBox(CFX_RectF& bbox, |
| 33 FX_FLOAT fLineWidth, | 33 FX_FLOAT fLineWidth, |
| 34 FX_FLOAT fMiterLimit) const = 0; | 34 FX_FLOAT fMiterLimit) const = 0; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 #endif // XFA_SRC_FDE_FDE_PATH_H_ | 37 #endif // XFA_FDE_FDE_PATH_H_ |
| OLD | NEW |