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/include/fx_dib.h" 13 #include "xfa/fgas/crt/fgas_memory.h" 14 15 class CFDE_Brush : public CFX_Target { 16 public: CFDE_Brush()17 CFDE_Brush() : m_Color(0xFF000000) {} 18 GetColor()19 FX_ARGB GetColor() const { return m_Color; } SetColor(FX_ARGB color)20 void SetColor(FX_ARGB color) { m_Color = color; } 21 22 private: 23 FX_ARGB m_Color; 24 }; 25 26 class CFDE_Pen : public CFX_Target { 27 public: CFDE_Pen()28 CFDE_Pen() : m_Color(0) {} ~CFDE_Pen()29 ~CFDE_Pen() override {} 30 GetColor()31 FX_ARGB GetColor() const { return m_Color; } SetColor(FX_ARGB color)32 void SetColor(FX_ARGB color) { m_Color = color; } 33 34 private: 35 FX_ARGB m_Color; 36 }; 37 38 #endif // XFA_FDE_FDE_OBJECT_H_ 39