Home | History | Annotate | Download | only in fde
      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:
     16   CFDE_Brush() : m_Color(0xFF000000) {}
     17 
     18   FX_ARGB GetColor() const { return m_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:
     27   CFDE_Pen() : m_Color(0) {}
     28   ~CFDE_Pen() {}
     29 
     30   FX_ARGB GetColor() const { return m_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