• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_PAGE_CPDF_SHADINGOBJECT_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_SHADINGOBJECT_H_
9 
10 #include "core/fpdfapi/page/cpdf_pageobject.h"
11 #include "core/fxcrt/fx_coordinates.h"
12 
13 class CPDF_ShadingPattern;
14 
15 class CPDF_ShadingObject : public CPDF_PageObject {
16  public:
17   CPDF_ShadingObject();
18   ~CPDF_ShadingObject() override;
19 
20   // CPDF_PageObject
21   Type GetType() const override;
22   void Transform(const CFX_Matrix& matrix) override;
23   bool IsShading() const override;
24   CPDF_ShadingObject* AsShading() override;
25   const CPDF_ShadingObject* AsShading() const override;
26 
27   void CalcBoundingBox();
28 
29   CPDF_ShadingPattern* m_pShading;
30   CFX_Matrix m_Matrix;
31 };
32 
33 #endif  // CORE_FPDFAPI_PAGE_CPDF_SHADINGOBJECT_H_
34