summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_transparency.h
blob: 92f7c83b73d44d6319bd71f9c1873da7a285dbf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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_