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_PATHOBJECT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATHOBJECT_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATHOBJECT_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATHOBJECT_H_ |
9 | 9 |
10 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" | 10 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" |
11 #include "core/fpdfapi/fpdf_page/include/cpdf_path.h" | 11 #include "core/fpdfapi/fpdf_page/include/cpdf_path.h" |
12 #include "core/include/fxcrt/fx_coordinates.h" | 12 #include "core/fxcrt/include/fx_coordinates.h" |
13 #include "core/include/fxcrt/fx_system.h" | 13 #include "core/fxcrt/include/fx_system.h" |
14 | 14 |
15 class CPDF_PathObject : public CPDF_PageObject { | 15 class CPDF_PathObject : public CPDF_PageObject { |
16 public: | 16 public: |
17 CPDF_PathObject(); | 17 CPDF_PathObject(); |
18 ~CPDF_PathObject() override; | 18 ~CPDF_PathObject() override; |
19 | 19 |
20 // CPDF_PageObject: | 20 // CPDF_PageObject: |
21 CPDF_PathObject* Clone() const override; | 21 CPDF_PathObject* Clone() const override; |
22 Type GetType() const override { return PATH; }; | 22 Type GetType() const override { return PATH; }; |
23 void Transform(const CFX_Matrix& maxtrix) override; | 23 void Transform(const CFX_Matrix& maxtrix) override; |
24 bool IsPath() const override { return true; }; | 24 bool IsPath() const override { return true; }; |
25 CPDF_PathObject* AsPath() override { return this; }; | 25 CPDF_PathObject* AsPath() override { return this; }; |
26 const CPDF_PathObject* AsPath() const override { return this; }; | 26 const CPDF_PathObject* AsPath() const override { return this; }; |
27 | 27 |
28 void CalcBoundingBox(); | 28 void CalcBoundingBox(); |
29 | 29 |
30 CPDF_Path m_Path; | 30 CPDF_Path m_Path; |
31 int m_FillType; | 31 int m_FillType; |
32 FX_BOOL m_bStroke; | 32 FX_BOOL m_bStroke; |
33 CFX_Matrix m_Matrix; | 33 CFX_Matrix m_Matrix; |
34 }; | 34 }; |
35 | 35 |
36 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATHOBJECT_H_ | 36 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATHOBJECT_H_ |
OLD | NEW |