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_CFX_PATH_GENERATOR_H_ | 7 #ifndef XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_ |
8 #define XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_ | 8 #define XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "core/fxge/include/cfx_pathdata.h" | 12 #include "core/fxge/include/cfx_pathdata.h" |
13 #include "core/fxge/include/fx_ge.h" | |
14 | 13 |
15 class CFX_PathGenerator { | 14 class CFX_PathGenerator { |
16 public: | 15 public: |
17 CFX_PathGenerator(); | 16 CFX_PathGenerator(); |
18 ~CFX_PathGenerator(); | 17 ~CFX_PathGenerator(); |
19 | 18 |
20 CFX_PathData* GetPathData() const { return m_pPathData.get(); } | 19 CFX_PathData* GetPathData() const { return m_pPathData.get(); } |
21 | 20 |
22 void AddPathData(CFX_PathData* path_data); | 21 void AddPathData(CFX_PathData* path_data); |
23 void AddPathData(FX_PATHPOINT* points, int count); | 22 void AddPathData(FX_PATHPOINT* points, int count); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 FX_FLOAT width, | 59 FX_FLOAT width, |
61 FX_FLOAT height, | 60 FX_FLOAT height, |
62 FX_FLOAT start_angle, | 61 FX_FLOAT start_angle, |
63 FX_FLOAT sweep_angle); | 62 FX_FLOAT sweep_angle); |
64 | 63 |
65 protected: | 64 protected: |
66 std::unique_ptr<CFX_PathData> m_pPathData; | 65 std::unique_ptr<CFX_PathData> m_pPathData; |
67 }; | 66 }; |
68 | 67 |
69 #endif // XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_ | 68 #endif // XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_ |
OLD | NEW |