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_FXGRAPHICS_FX_PATH_GENERATOR_H_ | 7 #ifndef XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_ |
8 #define XFA_FXGRAPHICS_FX_PATH_GENERATOR_H_ | 8 #define XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_ |
9 | 9 |
10 #include "core/include/fxge/fx_ge.h" | 10 #include "core/include/fxge/fx_ge.h" |
11 | 11 |
12 class CFX_PathGenerator { | 12 class CFX_PathGenerator { |
13 public: | 13 public: |
14 CFX_PathGenerator(); | 14 CFX_PathGenerator(); |
| 15 ~CFX_PathGenerator(); |
| 16 |
15 void Create(); | 17 void Create(); |
16 ~CFX_PathGenerator(); | |
17 CFX_PathData* GetPathData() const { return m_pPathData; } | 18 CFX_PathData* GetPathData() const { return m_pPathData; } |
| 19 |
18 void AddPathData(CFX_PathData* path_data); | 20 void AddPathData(CFX_PathData* path_data); |
19 void AddPathData(FX_PATHPOINT* points, int count); | 21 void AddPathData(FX_PATHPOINT* points, int count); |
| 22 |
20 void MoveTo(FX_FLOAT x, FX_FLOAT y); | 23 void MoveTo(FX_FLOAT x, FX_FLOAT y); |
21 void LineTo(FX_FLOAT x, FX_FLOAT y); | 24 void LineTo(FX_FLOAT x, FX_FLOAT y); |
22 void BezierTo(FX_FLOAT ctrl_x1, | 25 void BezierTo(FX_FLOAT ctrl_x1, |
23 FX_FLOAT ctrl_y1, | 26 FX_FLOAT ctrl_y1, |
24 FX_FLOAT ctrl_x2, | 27 FX_FLOAT ctrl_x2, |
25 FX_FLOAT ctrl_y2, | 28 FX_FLOAT ctrl_y2, |
26 FX_FLOAT to_x, | 29 FX_FLOAT to_x, |
27 FX_FLOAT to_y); | 30 FX_FLOAT to_y); |
28 void Close(); | 31 void Close(); |
29 void ArcTo(FX_FLOAT x, | 32 void ArcTo(FX_FLOAT x, |
(...skipping 24 matching lines...) Expand all Loading... |
54 FX_FLOAT y, | 57 FX_FLOAT y, |
55 FX_FLOAT width, | 58 FX_FLOAT width, |
56 FX_FLOAT height, | 59 FX_FLOAT height, |
57 FX_FLOAT start_angle, | 60 FX_FLOAT start_angle, |
58 FX_FLOAT sweep_angle); | 61 FX_FLOAT sweep_angle); |
59 | 62 |
60 protected: | 63 protected: |
61 CFX_PathData* m_pPathData; | 64 CFX_PathData* m_pPathData; |
62 }; | 65 }; |
63 | 66 |
64 #endif // XFA_FXGRAPHICS_FX_PATH_GENERATOR_H_ | 67 #endif // XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_ |
OLD | NEW |