diff options
Diffstat (limited to 'core/fpdfapi/render/cpdf_transparency.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_transparency.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/core/fpdfapi/render/cpdf_transparency.h b/core/fpdfapi/render/cpdf_transparency.h new file mode 100644 index 0000000000..92f7c83b73 --- /dev/null +++ b/core/fpdfapi/render/cpdf_transparency.h @@ -0,0 +1,25 @@ +// Copyright 2018 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CORE_FPDFAPI_RENDER_CPDF_TRANSPARENCY_H_ +#define CORE_FPDFAPI_RENDER_CPDF_TRANSPARENCY_H_ + +class CPDF_Transparency { + public: + CPDF_Transparency(); + + CPDF_Transparency(const CPDF_Transparency& other); + + bool IsGroup() const { return m_bGroup; } + bool IsIsolated() const { return m_bIsolated; } + + void SetGroup() { m_bGroup = true; } + void SetIsolated() { m_bIsolated = true; } + + private: + bool m_bGroup = false; + bool m_bIsolated = false; +}; + +#endif // CORE_FPDFAPI_RENDER_CPDF_TRANSPARENCY_H_ |