| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FXGRAPHICS_CFX_COLOR_H_ | 7 #ifndef XFA_FXGRAPHICS_CFX_COLOR_H_ |
| 8 #define XFA_FXGRAPHICS_CFX_COLOR_H_ | 8 #define XFA_FXGRAPHICS_CFX_COLOR_H_ |
| 9 | 9 |
| 10 #include "core/fxge/include/fx_dib.h" | 10 #include "core/fxge/fx_dib.h" |
| 11 #include "xfa/fxgraphics/include/cfx_graphics.h" | 11 #include "xfa/fxgraphics/include/cfx_graphics.h" |
| 12 | 12 |
| 13 class CFX_Pattern; | 13 class CFX_Pattern; |
| 14 class CFX_Shading; | 14 class CFX_Shading; |
| 15 | 15 |
| 16 enum { FX_COLOR_None = 0, FX_COLOR_Solid, FX_COLOR_Pattern, FX_COLOR_Shading }; | 16 enum { FX_COLOR_None = 0, FX_COLOR_Solid, FX_COLOR_Pattern, FX_COLOR_Shading }; |
| 17 | 17 |
| 18 class CFX_Color { | 18 class CFX_Color { |
| 19 public: | 19 public: |
| 20 CFX_Color(); | 20 CFX_Color(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 34 union { | 34 union { |
| 35 struct { | 35 struct { |
| 36 FX_ARGB argb; | 36 FX_ARGB argb; |
| 37 CFX_Pattern* pattern; | 37 CFX_Pattern* pattern; |
| 38 } m_info; | 38 } m_info; |
| 39 CFX_Shading* m_shading; | 39 CFX_Shading* m_shading; |
| 40 }; | 40 }; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 #endif // XFA_FXGRAPHICS_CFX_COLOR_H_ | 43 #endif // XFA_FXGRAPHICS_CFX_COLOR_H_ |
| OLD | NEW |