7#include "xfa/fxfa/parser/cxfa_fill.h"
9#include "fxjs/xfa/cjx_node.h"
10#include "xfa/fgas/graphics/cfgas_gegraphics.h"
11#include "xfa/fxfa/parser/cxfa_color.h"
12#include "xfa/fxfa/parser/cxfa_document.h"
13#include "xfa/fxfa/parser/cxfa_linear.h"
14#include "xfa/fxfa/parser/cxfa_node.h"
15#include "xfa/fxfa/parser/cxfa_pattern.h"
16#include "xfa/fxfa/parser/cxfa_radial.h"
17#include "xfa/fxfa/parser/cxfa_stipple.h"
46 {XFA_XDPPACKET::kTemplate, XFA_XDPPACKET::kForm},
51 cppgc::MakeGarbageCollected<CJX_Node>(
52 doc->GetHeap()->GetAllocationHandle(),
66 JSObject()->GetOrCreateProperty<CXFA_Color>(0,
XFA_Element::Color);
74 const auto* pColor = GetChild<CXFA_Color>(0,
XFA_Element::Color,
false);
75 return pColor ? pColor->GetValueOrDefault(0xFFFFFFFF) : 0xFFFFFFFF;
79 const auto* pColor = GetChild<CXFA_Color>(0,
XFA_Element::Color,
false);
80 return pColor ? pColor->GetValueOrDefault(0xFF000000) : 0xFF000000;
90 pChild = pChild->GetNextSibling();
96 const CFGAS_GEPath& fillPath,
102 DrawRadial(pGS, fillPath, rtWidget, matrix);
105 DrawPattern(pGS, fillPath, rtWidget, matrix);
108 DrawLinear(pGS, fillPath, rtWidget, matrix);
111 DrawStipple(pGS, fillPath, rtWidget, matrix);
122 const CFGAS_GEPath& fillPath,
125 CXFA_Stipple* stipple =
126 JSObject()->GetOrCreateProperty<CXFA_Stipple>(0,
XFA_Element::Stipple);
132 const CFGAS_GEPath& fillPath,
135 CXFA_Radial* radial =
136 JSObject()->GetOrCreateProperty<CXFA_Radial>(0,
XFA_Element::Radial);
142 const CFGAS_GEPath& fillPath,
145 CXFA_Linear* linear =
146 JSObject()->GetOrCreateProperty<CXFA_Linear>(0,
XFA_Element::Linear);
152 const CFGAS_GEPath& fillPath,
155 CXFA_Pattern* pattern =
156 JSObject()->GetOrCreateProperty<CXFA_Pattern>(0,
XFA_Element::Pattern);
CFGAS_GEColor(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)
void SetValue(FX_ARGB color)
void Draw(CFGAS_GEGraphics *pGS, const CFGAS_GEPath &fillPath, const CFX_RectF &rtWidget, const CFX_Matrix &matrix)
FX_ARGB GetTextColor() const
void SetColor(FX_ARGB color)
FX_ARGB GetFillColor() const
void Draw(CFGAS_GEGraphics *pGS, const CFGAS_GEPath &fillPath, FX_ARGB crStart, const CFX_RectF &rtFill, const CFX_Matrix &matrix)
XFA_Element GetElementType() const
void Draw(CFGAS_GEGraphics *pGS, const CFGAS_GEPath &fillPath, FX_ARGB crStart, const CFX_RectF &rtFill, const CFX_Matrix &matrix)
void Draw(CFGAS_GEGraphics *pGS, const CFGAS_GEPath &fillPath, FX_ARGB crStart, const CFX_RectF &rtFill, const CFX_Matrix &matrix)
void Draw(CFGAS_GEGraphics *pGS, const CFGAS_GEPath &fillPath, const CFX_RectF &rtFill, const CFX_Matrix &matrix)