7#include "xfa/fxfa/parser/cxfa_radial.h"
13#include "fxjs/xfa/cjx_node.h"
14#include "xfa/fgas/graphics/cfgas_gegraphics.h"
15#include "xfa/fgas/graphics/cfgas_geshading.h"
16#include "xfa/fxfa/parser/cxfa_color.h"
17#include "xfa/fxfa/parser/cxfa_document.h"
39 {XFA_XDPPACKET::kTemplate, XFA_XDPPACKET::kForm},
44 cppgc::MakeGarbageCollected<CJX_Node>(
45 doc->GetHeap()->GetAllocationHandle(),
50bool CXFA_Radial::IsToEdge() {
55CXFA_Color* CXFA_Radial::GetColorIfExists() {
56 return GetChild<CXFA_Color>(0,
XFA_Element::Color,
false);
60 const CFGAS_GEPath& fillPath,
64 CXFA_Color* pColor = GetColorIfExists();
67 std::swap(crStart, crEnd);
70 CFGAS_GEShading shading(rtFill.Center(), rtFill.Center(), 0, end_radius,
true,
71 true, 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)
float FXSYS_sqrt2(float a, float b)