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 #include "core/fpdfapi/fpdf_page/cpdf_path.h" | 7 #include "core/fpdfapi/page/cpdf_path.h" |
8 | 8 |
9 CPDF_Path::CPDF_Path() {} | 9 CPDF_Path::CPDF_Path() {} |
10 | 10 |
11 CPDF_Path::CPDF_Path(const CPDF_Path& that) : m_Ref(that.m_Ref) {} | 11 CPDF_Path::CPDF_Path(const CPDF_Path& that) : m_Ref(that.m_Ref) {} |
12 | 12 |
13 CPDF_Path::~CPDF_Path() {} | 13 CPDF_Path::~CPDF_Path() {} |
14 | 14 |
15 int CPDF_Path::GetPointCount() const { | 15 int CPDF_Path::GetPointCount() const { |
16 return m_Ref.GetObject()->GetPointCount(); | 16 return m_Ref.GetObject()->GetPointCount(); |
17 } | 17 } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void CPDF_Path::Append(const CFX_PathData* pData, const CFX_Matrix* pMatrix) { | 64 void CPDF_Path::Append(const CFX_PathData* pData, const CFX_Matrix* pMatrix) { |
65 m_Ref.GetPrivateCopy()->Append(pData, pMatrix); | 65 m_Ref.GetPrivateCopy()->Append(pData, pMatrix); |
66 } | 66 } |
67 | 67 |
68 void CPDF_Path::AppendRect(FX_FLOAT left, | 68 void CPDF_Path::AppendRect(FX_FLOAT left, |
69 FX_FLOAT bottom, | 69 FX_FLOAT bottom, |
70 FX_FLOAT right, | 70 FX_FLOAT right, |
71 FX_FLOAT top) { | 71 FX_FLOAT top) { |
72 m_Ref.GetPrivateCopy()->AppendRect(left, bottom, right, top); | 72 m_Ref.GetPrivateCopy()->AppendRect(left, bottom, right, top); |
73 } | 73 } |
OLD | NEW |