• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 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_RENDER_CPDF_RENDERSHADING_H_
8 #define CORE_FPDFAPI_RENDER_CPDF_RENDERSHADING_H_
9 
10 class CFX_Matrix;
11 class CFX_RenderDevice;
12 class CPDF_PageObject;
13 class CPDF_RenderContext;
14 class CPDF_RenderOptions;
15 class CPDF_ShadingPattern;
16 struct FX_RECT;
17 
18 class CPDF_RenderShading {
19  public:
20   static void Draw(CFX_RenderDevice* pDevice,
21                    CPDF_RenderContext* pContext,
22                    const CPDF_PageObject* pCurObj,
23                    const CPDF_ShadingPattern* pPattern,
24                    const CFX_Matrix& mtMatrix,
25                    const FX_RECT& clip_rect,
26                    int alpha,
27                    const CPDF_RenderOptions& options);
28 
29   CPDF_RenderShading() = delete;
30   CPDF_RenderShading(const CPDF_RenderShading&) = delete;
31   CPDF_RenderShading& operator=(const CPDF_RenderShading&) = delete;
32 };
33 
34 #endif  // CORE_FPDFAPI_RENDER_CPDF_RENDERSHADING_H_
35