7#include "xfa/fxfa/parser/cxfa_pattern.h"
9#include "fxjs/xfa/cjx_node.h"
10#include "xfa/fgas/graphics/cfgas_gegraphics.h"
11#include "xfa/fgas/graphics/cfgas_gepattern.h"
12#include "xfa/fxfa/parser/cxfa_color.h"
13#include "xfa/fxfa/parser/cxfa_document.h"
32CXFA_Pattern::CXFA_Pattern(CXFA_Document* doc,
XFA_PacketType packet)
35 {XFA_XDPPACKET::kTemplate, XFA_XDPPACKET::kForm},
39 kPatternAttributeData,
40 cppgc::MakeGarbageCollected<CJX_Node>(
41 doc->GetHeap()->GetAllocationHandle(),
46CXFA_Color* CXFA_Pattern::GetColorIfExists() {
47 return GetChild<CXFA_Color>(0,
XFA_Element::Color,
false);
55 const CFGAS_GEPath& fillPath,
59 CXFA_Color* pColor = GetColorIfExists();
82 CFGAS_GEPattern pattern
(iHatch
, crEnd
, crStart
);
CFGAS_GEColor(CFGAS_GEPattern *pattern, const FX_ARGB argb)
StateRestorer(CFGAS_GEGraphics *graphics)
void FillPath(const CFGAS_GEPath &path, CFX_FillRenderOptions::FillType fill_type, const CFX_Matrix &matrix)
void SetFillColor(const CFGAS_GEColor &color)
CFGAS_GEPattern(HatchStyle hatchStyle, FX_ARGB foreArgb, FX_ARGB backArgb)
static constexpr FX_ARGB kBlackColor
void Draw(CFGAS_GEGraphics *pGS, const CFGAS_GEPath &fillPath, FX_ARGB crStart, const CFX_RectF &rtFill, const CFX_Matrix &matrix)