• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 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 XFA_FDE_FDE_OBJECT_H_
8 #define XFA_FDE_FDE_OBJECT_H_
9 
10 #include <cstdint>
11 
12 #include "core/fxge/fx_dib.h"
13 
14 class CFDE_Brush {
15  public:
CFDE_Brush()16   CFDE_Brush() : m_Color(0xFF000000) {}
17 
GetColor()18   FX_ARGB GetColor() const { return m_Color; }
SetColor(FX_ARGB color)19   void SetColor(FX_ARGB color) { m_Color = color; }
20 
21  private:
22   FX_ARGB m_Color;
23 };
24 
25 class CFDE_Pen {
26  public:
CFDE_Pen()27   CFDE_Pen() : m_Color(0) {}
~CFDE_Pen()28   ~CFDE_Pen() {}
29 
GetColor()30   FX_ARGB GetColor() const { return m_Color; }
SetColor(FX_ARGB color)31   void SetColor(FX_ARGB color) { m_Color = color; }
32 
33  private:
34   FX_ARGB m_Color;
35 };
36 
37 #endif  // XFA_FDE_FDE_OBJECT_H_
38