7#include "xfa/fxfa/parser/cxfa_linear.h"
9#include "fxjs/xfa/cjx_node.h"
10#include "xfa/fgas/graphics/cfgas_gegraphics.h"
11#include "xfa/fgas/graphics/cfgas_geshading.h"
12#include "xfa/fxfa/parser/cxfa_color.h"
13#include "xfa/fxfa/parser/cxfa_document.h"
35 {XFA_XDPPACKET::kTemplate, XFA_XDPPACKET::kForm},
40 cppgc::MakeGarbageCollected<CJX_Node>(
41 doc->GetHeap()->GetAllocationHandle(),
52CXFA_Color* CXFA_Linear::GetColorIfExists() {
53 return GetChild<CXFA_Color>(0,
XFA_Element::Color,
false);
57 const CFGAS_GEPath& fillPath,
61 CXFA_Color* pColor = GetColorIfExists();
68 ptStart = CFX_PointF(rtFill
.left, rtFill
.top);
72 ptStart = CFX_PointF(rtFill
.left, rtFill
.top);
77 ptEnd = CFX_PointF(rtFill
.left, rtFill
.top);
81 ptEnd = CFX_PointF(rtFill
.left, rtFill
.top);
87 CFGAS_GEShading shading(ptStart, ptEnd,
false,
false, crStart, crEnd);
CFGAS_GEColor(CFGAS_GEShading *shading)
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)
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)