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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 CFX_FloatRect GetBoundingBox(FX_FLOAT line_width, | 23 CFX_FloatRect GetBoundingBox(FX_FLOAT line_width, |
24 FX_FLOAT miter_limit) const { | 24 FX_FLOAT miter_limit) const { |
25 return GetObject()->GetBoundingBox(line_width, miter_limit); | 25 return GetObject()->GetBoundingBox(line_width, miter_limit); |
26 } | 26 } |
27 | 27 |
28 FX_BOOL IsRect() const { return GetObject()->IsRect(); } | 28 FX_BOOL IsRect() const { return GetObject()->IsRect(); } |
29 void Transform(const CFX_Matrix* pMatrix) { | 29 void Transform(const CFX_Matrix* pMatrix) { |
30 GetPrivateCopy()->Transform(pMatrix); | 30 GetPrivateCopy()->Transform(pMatrix); |
31 } | 31 } |
32 void Append(const CPDF_Path& other, const CFX_Matrix* pMatrix) { | 32 void Append(const CPDF_Path& other, const CFX_Matrix* pMatrix) { |
33 GetObject()->Append(other.GetObject(), pMatrix); | 33 GetPrivateCopy()->Append(other.GetObject(), pMatrix); |
34 } | 34 } |
35 | 35 |
36 void AppendRect(FX_FLOAT left, | 36 void AppendRect(FX_FLOAT left, |
37 FX_FLOAT bottom, | 37 FX_FLOAT bottom, |
38 FX_FLOAT right, | 38 FX_FLOAT right, |
39 FX_FLOAT top) { | 39 FX_FLOAT top) { |
40 GetObject()->AppendRect(left, bottom, right, top); | 40 GetPrivateCopy()->AppendRect(left, bottom, right, top); |
41 } | 41 } |
42 }; | 42 }; |
43 | 43 |
44 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_ | 44 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PATH_H_ |
OLD | NEW |