OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FDE_FDE_OBJECT_H_ | 7 #ifndef XFA_FDE_FDE_OBJECT_H_ |
8 #define XFA_FDE_FDE_OBJECT_H_ | 8 #define XFA_FDE_FDE_OBJECT_H_ |
9 | 9 |
10 #include <cstdint> | 10 #include <cstdint> |
11 | 11 |
12 #include "core/fxge/include/fx_dib.h" | 12 #include "core/fxge/include/fx_dib.h" |
13 #include "xfa/fgas/crt/fgas_memory.h" | 13 #include "xfa/fgas/crt/fgas_memory.h" |
14 | 14 |
15 class CFDE_Brush : public CFX_Target { | 15 class CFDE_Brush : public CFX_Target { |
16 public: | 16 public: |
17 CFDE_Brush() : m_Color(0xFF000000) {} | 17 CFDE_Brush() : m_Color(0xFF000000) {} |
18 | 18 |
19 FX_ARGB GetColor() const { return m_Color; } | 19 FX_ARGB GetColor() const { return m_Color; } |
20 void SetColor(FX_ARGB color) { m_Color = color; } | 20 void SetColor(FX_ARGB color) { m_Color = color; } |
21 | 21 |
22 private: | 22 private: |
23 FX_ARGB m_Color; | 23 FX_ARGB m_Color; |
24 }; | 24 }; |
25 | 25 |
26 class CFDE_Pen : public CFX_Target { | 26 class CFDE_Pen : public CFX_Target { |
27 public: | 27 public: |
28 CFDE_Pen() : m_Color(0) {} | 28 CFDE_Pen() : m_Color(0) {} |
29 ~CFDE_Pen() {} | 29 ~CFDE_Pen() override {} |
30 | 30 |
31 FX_ARGB GetColor() const { return m_Color; } | 31 FX_ARGB GetColor() const { return m_Color; } |
32 void SetColor(FX_ARGB color) { m_Color = color; } | 32 void SetColor(FX_ARGB color) { m_Color = color; } |
33 | 33 |
34 private: | 34 private: |
35 FX_ARGB m_Color; | 35 FX_ARGB m_Color; |
36 }; | 36 }; |
37 | 37 |
38 #endif // XFA_FDE_FDE_OBJECT_H_ | 38 #endif // XFA_FDE_FDE_OBJECT_H_ |
OLD | NEW |