#include <SkSVGLinearGradient.h>
|
| SVG_ATTR (GradientTransform, SkSVGTransformType, SkSVGTransformType(SkMatrix::I())) SVG_ATTR(GradientUnits |
|
| SkSVGObjectBoundingBoxUnits (SkSVGObjectBoundingBoxUnits::Type::kObjectBoundingBox)) protected |
|
bool | onAsPaint (const SkSVGRenderContext &, SkPaint *) const final |
|
void | appendChild (sk_sp< SkSVGNode >) override |
|
void | setTransform (const SkSVGTransformType &t) |
|
| ~SkSVGNode () override |
|
SkSVGTag | tag () const |
|
void | render (const SkSVGRenderContext &) const |
|
bool | asPaint (const SkSVGRenderContext &, SkPaint *) const |
|
SkPath | asPath (const SkSVGRenderContext &) const |
|
SkRect | objectBoundingBox (const SkSVGRenderContext &) const |
|
void | setAttribute (SkSVGAttribute, const SkSVGValue &) |
|
bool | setAttribute (const char *attributeName, const char *attributeValue) |
|
| SkRefCntBase () |
|
virtual | ~SkRefCntBase () |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
| SkSVGObjectBoundingBoxUnits |
|
static SkMatrix | ComputeViewboxMatrix (const SkRect &, const SkRect &, SkSVGPreserveAspectRatio) |
|
skia_private::STArray< 1, sk_sp< SkSVGNode >, true > | fChildren |
|
Definition at line 14 of file SkSVGLinearGradient.h.
◆ Make()
◆ onMakeShader()
Implements SkSVGGradient.
Definition at line 24 of file SkSVGLinearGradient.cpp.
27 {
31 : ctx.lengthContext();
32
37
38 const SkPoint pts[2] = { {x1, y1}, {x2, y2}};
39
41}
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
SkScalar resolve(const SkSVGLength &, LengthType) const
◆ parseAndSetAttribute()
bool SkSVGLinearGradient::parseAndSetAttribute |
( |
const char * |
name, |
|
|
const char * |
value |
|
) |
| |
|
overrideprotectedvirtual |
Reimplemented from SkSVGGradient.
Definition at line 16 of file SkSVGLinearGradient.cpp.
16 {
18 this->setX1(SkSVGAttributeParser::parse<SkSVGLength>(
"x1",
name, value)) ||
19 this->setY1(SkSVGAttributeParser::parse<SkSVGLength>(
"y1",
name, value)) ||
20 this->setX2(SkSVGAttributeParser::parse<SkSVGLength>(
"x2",
name, value)) ||
21 this->setY2(SkSVGAttributeParser::parse<SkSVGLength>(
"y2",
name, value));
22}
bool parseAndSetAttribute(const char *, const char *) override
The documentation for this class was generated from the following files: