summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_shadingobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page/cpdf_shadingobject.h')
-rw-r--r--core/fpdfapi/page/cpdf_shadingobject.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_shadingobject.h b/core/fpdfapi/page/cpdf_shadingobject.h
index a5405cb090..80e062c729 100644
--- a/core/fpdfapi/page/cpdf_shadingobject.h
+++ b/core/fpdfapi/page/cpdf_shadingobject.h
@@ -15,10 +15,10 @@ class CPDF_ShadingPattern;
class CPDF_ShadingObject : public CPDF_PageObject {
public:
- CPDF_ShadingObject();
+ CPDF_ShadingObject(CPDF_ShadingPattern* pattern, const CFX_Matrix& matrix);
~CPDF_ShadingObject() override;
- // CPDF_PageObject
+ // CPDF_PageObject:
Type GetType() const override;
void Transform(const CFX_Matrix& matrix) override;
bool IsShading() const override;
@@ -27,6 +27,10 @@ class CPDF_ShadingObject : public CPDF_PageObject {
void CalcBoundingBox();
+ const CPDF_ShadingPattern* pattern() const { return m_pShading.Get(); }
+ const CFX_Matrix& matrix() const { return m_Matrix; }
+
+ private:
UnownedPtr<CPDF_ShadingPattern> m_pShading;
CFX_Matrix m_Matrix;
};