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