OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
| 11 #include "core/fxge/include/cfx_pathdata.h" |
11 #include "core/fxge/include/fx_ge.h" | 12 #include "core/fxge/include/fx_ge.h" |
12 | 13 |
13 class CPDF_Path : public CFX_CountRef<CFX_PathData> { | 14 class CPDF_Path : public CFX_CountRef<CFX_PathData> { |
14 public: | 15 public: |
15 int GetPointCount() const { return m_pObject->m_PointCount; } | 16 int GetPointCount() const { return m_pObject->m_PointCount; } |
16 int GetFlag(int index) const { return m_pObject->m_pPoints[index].m_Flag; } | 17 int GetFlag(int index) const { return m_pObject->m_pPoints[index].m_Flag; } |
17 | 18 |
18 FX_FLOAT GetPointX(int index) const { | 19 FX_FLOAT GetPointX(int index) const { |
19 return m_pObject->m_pPoints[index].m_PointX; | 20 return m_pObject->m_pPoints[index].m_PointX; |
20 } | 21 } |
(...skipping 20 matching lines...) Expand all Loading... |
41 | 42 |
42 void AppendRect(FX_FLOAT left, | 43 void AppendRect(FX_FLOAT left, |
43 FX_FLOAT bottom, | 44 FX_FLOAT bottom, |
44 FX_FLOAT right, | 45 FX_FLOAT right, |
45 FX_FLOAT top) { | 46 FX_FLOAT top) { |
46 m_pObject->AppendRect(left, bottom, right, top); | 47 m_pObject->AppendRect(left, bottom, right, top); |
47 } | 48 } |
48 }; | 49 }; |
49 | 50 |
50 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_ | 51 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_ |
OLD | NEW |