1 // Copyright 2017 The PDFium Authors 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_FXFA_PARSER_CXFA_STIPPLE_H_ 8 #define XFA_FXFA_PARSER_CXFA_STIPPLE_H_ 9 10 #include "core/fxcrt/fx_coordinates.h" 11 #include "xfa/fgas/graphics/cfgas_gepath.h" 12 #include "xfa/fxfa/parser/cxfa_node.h" 13 14 class CFGAS_GEGraphics; 15 class CXFA_Color; 16 17 class CXFA_Stipple final : public CXFA_Node { 18 public: GetDefaultRate()19 static int32_t GetDefaultRate() { return 50; } 20 21 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED; 22 ~CXFA_Stipple() override; 23 24 void Draw(CFGAS_GEGraphics* pGS, 25 const CFGAS_GEPath& fillPath, 26 const CFX_RectF& rtFill, 27 const CFX_Matrix& matrix); 28 29 private: 30 CXFA_Stipple(CXFA_Document* doc, XFA_PacketType packet); 31 32 CXFA_Color* GetColorIfExists(); 33 int32_t GetRate(); 34 }; 35 36 #endif // XFA_FXFA_PARSER_CXFA_STIPPLE_H_ 37