14d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Copyright 2016 PDFium Authors. All rights reserved. 24d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Use of this source code is governed by a BSD-style license that can be 34d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// found in the LICENSE file. 44d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 54d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 64d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 74d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#ifndef XFA_FXFA_PARSER_CXFA_FILL_H_ 84d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#define XFA_FXFA_PARSER_CXFA_FILL_H_ 94d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 104d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include "core/fxcrt/fx_system.h" 114d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include "core/fxge/fx_dib.h" 124d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include "xfa/fxfa/parser/cxfa_data.h" 134d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 144d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmannclass CXFA_Node; 154d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 164d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmannclass CXFA_Fill : public CXFA_Data { 174d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann public: 184d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann explicit CXFA_Fill(CXFA_Node* pNode); 194d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann ~CXFA_Fill(); 204d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 214d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann int32_t GetPresence(); 224d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann FX_ARGB GetColor(bool bText = false); 234d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann XFA_Element GetFillType(); 244d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann int32_t GetPattern(FX_ARGB& foreColor); 254d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann int32_t GetStipple(FX_ARGB& stippleColor); 264d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann int32_t GetLinear(FX_ARGB& endColor); 274d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann int32_t GetRadial(FX_ARGB& endColor); 284d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann void SetColor(FX_ARGB color); 294d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann}; 304d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 314d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#endif // XFA_FXFA_PARSER_CXFA_FILL_H_ 32