• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The PDFium Authors
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 XFA_FGAS_GRAPHICS_CFGAS_GEPATTERN_H_
8 #define XFA_FGAS_GRAPHICS_CFGAS_GEPATTERN_H_
9 
10 #include "core/fxge/dib/fx_dib.h"
11 
12 class CFGAS_GEPattern final {
13  public:
14   enum class HatchStyle {
15     Horizontal = 0,
16     Vertical = 1,
17     ForwardDiagonal = 2,
18     BackwardDiagonal = 3,
19     Cross = 4,
20     DiagonalCross = 5
21   };
22 
23   CFGAS_GEPattern(HatchStyle hatchStyle, FX_ARGB foreArgb, FX_ARGB backArgb);
24   ~CFGAS_GEPattern();
25 
GetHatchStyle()26   HatchStyle GetHatchStyle() const { return m_hatchStyle; }
GetForeArgb()27   FX_ARGB GetForeArgb() const { return m_foreArgb; }
GetBackArgb()28   FX_ARGB GetBackArgb() const { return m_backArgb; }
29 
30  private:
31   const HatchStyle m_hatchStyle;
32   const FX_ARGB m_foreArgb;
33   const FX_ARGB m_backArgb;
34 };
35 
36 #endif  // XFA_FGAS_GRAPHICS_CFGAS_GEPATTERN_H_
37