| 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_FXFA_PARSER_CXFA_FILL_H_ | 7 #ifndef XFA_FXFA_PARSER_CXFA_FILL_H_ |
| 8 #define XFA_FXFA_PARSER_CXFA_FILL_H_ | 8 #define XFA_FXFA_PARSER_CXFA_FILL_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/fx_system.h" | 10 #include "core/fxcrt/fx_system.h" |
| 11 #include "core/fxge/fx_dib.h" | 11 #include "core/fxge/fx_dib.h" |
| 12 #include "xfa/fxfa/parser/cxfa_data.h" | 12 #include "xfa/fxfa/parser/cxfa_data.h" |
| 13 | 13 |
| 14 class CXFA_Node; | 14 class CXFA_Node; |
| 15 | 15 |
| 16 class CXFA_Fill : public CXFA_Data { | 16 class CXFA_Fill : public CXFA_Data { |
| 17 public: | 17 public: |
| 18 explicit CXFA_Fill(CXFA_Node* pNode); | 18 explicit CXFA_Fill(CXFA_Node* pNode); |
| 19 ~CXFA_Fill(); | 19 ~CXFA_Fill(); |
| 20 | 20 |
| 21 int32_t GetPresence(); | 21 int32_t GetPresence(); |
| 22 FX_ARGB GetColor(FX_BOOL bText = FALSE); | 22 FX_ARGB GetColor(bool bText = false); |
| 23 XFA_Element GetFillType(); | 23 XFA_Element GetFillType(); |
| 24 int32_t GetPattern(FX_ARGB& foreColor); | 24 int32_t GetPattern(FX_ARGB& foreColor); |
| 25 int32_t GetStipple(FX_ARGB& stippleColor); | 25 int32_t GetStipple(FX_ARGB& stippleColor); |
| 26 int32_t GetLinear(FX_ARGB& endColor); | 26 int32_t GetLinear(FX_ARGB& endColor); |
| 27 int32_t GetRadial(FX_ARGB& endColor); | 27 int32_t GetRadial(FX_ARGB& endColor); |
| 28 void SetColor(FX_ARGB color); | 28 void SetColor(FX_ARGB color); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 #endif // XFA_FXFA_PARSER_CXFA_FILL_H_ | 31 #endif // XFA_FXFA_PARSER_CXFA_FILL_H_ |
| OLD | NEW |