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_GRAPHOBJS_IMP | 7 #ifndef _FDE_GRAPHOBJS_IMP |
8 #define _FDE_GRAPHOBJS_IMP | 8 #define _FDE_GRAPHOBJS_IMP |
9 #ifndef _FDEPLUS | 9 #ifndef _FDEPLUS |
10 #include "../../../foxitlib.h" | 10 #include "../../../foxitlib.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 virtual void AddBeziers(const CFX_PointsF &points); | 24 virtual void AddBeziers(const CFX_PointsF &points); |
25 virtual void AddCurve(const CFX_PointsF &points, FX_B
OOL bClosed, FX_FLOAT fTension = 0.5f); | 25 virtual void AddCurve(const CFX_PointsF &points, FX_B
OOL bClosed, FX_FLOAT fTension = 0.5f); |
26 virtual void AddEllipse(const CFX_RectF &rect); | 26 virtual void AddEllipse(const CFX_RectF &rect); |
27 virtual void AddLines(const CFX_PointsF &points); | 27 virtual void AddLines(const CFX_PointsF &points); |
28 virtual void AddLine(const CFX_PointF &pt1, const CFX
_PointF &pt2); | 28 virtual void AddLine(const CFX_PointF &pt1, const CFX
_PointF &pt2); |
29 virtual void AddPath(const IFDE_Path *pSrc, FX_BOOL b
Connect); | 29 virtual void AddPath(const IFDE_Path *pSrc, FX_BOOL b
Connect); |
30 virtual void AddPolygon(const CFX_PointsF &points); | 30 virtual void AddPolygon(const CFX_PointsF &points); |
31 virtual void AddRectangle(const CFX_RectF &rect); | 31 virtual void AddRectangle(const CFX_RectF &rect); |
32 virtual void GetBBox(CFX_RectF &bbox) const; | 32 virtual void GetBBox(CFX_RectF &bbox) const; |
33 virtual void GetBBox(CFX_RectF &bbox, FX_FLOAT fLineW
idth, FX_FLOAT fMiterLimit) const; | 33 virtual void GetBBox(CFX_RectF &bbox, FX_FLOAT fLineW
idth, FX_FLOAT fMiterLimit) const; |
34 FX_PATHPOINT*» » » AddPoints(FX_INT32 iCount); | 34 FX_PATHPOINT*» » » AddPoints(int32_t iCount); |
35 FX_PATHPOINT*» » » GetLastPoint(FX_INT32 iCount = 1) const; | 35 FX_PATHPOINT*» » » GetLastPoint(int32_t iCount = 1) const; |
36 FX_BOOL FigureClosed() const; | 36 FX_BOOL FigureClosed() const; |
37 void MoveTo(FX_FLOAT fx, FX_FLOAT fy)
; | 37 void MoveTo(FX_FLOAT fx, FX_FLOAT fy)
; |
38 void LineTo(FX_FLOAT fx, FX_FLOAT fy)
; | 38 void LineTo(FX_FLOAT fx, FX_FLOAT fy)
; |
39 void BezierTo(const CFX_PointF &p1, c
onst CFX_PointF &p2, const CFX_PointF &p3); | 39 void BezierTo(const CFX_PointF &p1, c
onst CFX_PointF &p2, const CFX_PointF &p3); |
40 void ArcTo(FX_BOOL bStart, const CFX_
RectF &rect, FX_FLOAT startAngle, FX_FLOAT endAngle); | 40 void ArcTo(FX_BOOL bStart, const CFX_
RectF &rect, FX_FLOAT startAngle, FX_FLOAT endAngle); |
41 void MoveTo(const CFX_PointF &p0) | 41 void MoveTo(const CFX_PointF &p0) |
42 { | 42 { |
43 MoveTo(p0.x, p0.y); | 43 MoveTo(p0.x, p0.y); |
44 } | 44 } |
45 void LineTo(const CFX_PointF &p1) | 45 void LineTo(const CFX_PointF &p1) |
46 { | 46 { |
47 LineTo(p1.x, p1.y); | 47 LineTo(p1.x, p1.y); |
48 } | 48 } |
49 void GetCurveTangents(const CFX_Point
sF &points, CFX_PointsF &tangents, FX_BOOL bClosed, FX_FLOAT fTension) const; | 49 void GetCurveTangents(const CFX_Point
sF &points, CFX_PointsF &tangents, FX_BOOL bClosed, FX_FLOAT fTension) const; |
50 CFX_PathData m_Path; | 50 CFX_PathData m_Path; |
51 }; | 51 }; |
52 #endif | 52 #endif |
53 #endif | 53 #endif |
OLD | NEW |