OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 |
| 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_PATTERN_H_ |
| 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_PATTERN_H_ |
| 9 |
| 10 #include "core/fxcrt/include/fx_coordinates.h" |
| 11 #include "core/fxcrt/include/fx_system.h" |
| 12 |
| 13 class CPDF_Document; |
| 14 class CPDF_Object; |
| 15 |
| 16 class CPDF_Pattern { |
| 17 public: |
| 18 enum PatternType { TILING = 1, SHADING }; |
| 19 |
| 20 virtual ~CPDF_Pattern(); |
| 21 |
| 22 void SetForceClear(FX_BOOL bForceClear) { m_bForceClear = bForceClear; } |
| 23 |
| 24 const PatternType m_PatternType; |
| 25 CPDF_Document* const m_pDocument; |
| 26 CPDF_Object* const m_pPatternObj; |
| 27 CFX_Matrix m_Pattern2Form; |
| 28 CFX_Matrix m_ParentMatrix; |
| 29 |
| 30 protected: |
| 31 CPDF_Pattern(PatternType type, |
| 32 CPDF_Document* pDoc, |
| 33 CPDF_Object* pObj, |
| 34 const CFX_Matrix* pParentMatrix); |
| 35 |
| 36 FX_BOOL m_bForceClear; |
| 37 }; |
| 38 |
| 39 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_PATTERN_H_ |
OLD | NEW |