#include <SkSVGLinearGradient.h>
|
bool | parseAndSetAttribute (const char *, const char *) override |
|
sk_sp< SkShader > | onMakeShader (const SkSVGRenderContext &, const SkColor4f *, const SkScalar *, int count, SkTileMode, const SkMatrix &) const override |
|
| SkSVGHiddenContainer (SkSVGTag t) |
|
void | onRender (const SkSVGRenderContext &) const final |
|
| SkSVGContainer (SkSVGTag) |
|
void | onRender (const SkSVGRenderContext &) const override |
|
SkPath | onAsPath (const SkSVGRenderContext &) const override |
|
SkRect | onObjectBoundingBox (const SkSVGRenderContext &) const override |
|
bool | hasChildren () const final |
|
template<typename NodeType , typename Func > |
void | forEachChild (Func func) const |
|
| SkSVGTransformableNode (SkSVGTag) |
|
bool | onPrepareToRender (SkSVGRenderContext *) const override |
|
void | onSetAttribute (SkSVGAttribute, const SkSVGValue &) override |
|
void | mapToParent (SkPath *) const |
|
void | mapToParent (SkRect *) const |
|
| SkSVGNode (SkSVGTag) |
|
virtual bool | onPrepareToRender (SkSVGRenderContext *) const |
|
virtual void | onRender (const SkSVGRenderContext &) const =0 |
|
virtual bool | onAsPaint (const SkSVGRenderContext &, SkPaint *) const |
|
virtual SkPath | onAsPath (const SkSVGRenderContext &) const =0 |
|
virtual void | onSetAttribute (SkSVGAttribute, const SkSVGValue &) |
|
virtual bool | hasChildren () const |
|
virtual SkRect | onObjectBoundingBox (const SkSVGRenderContext &) const |
|
|
| SVG_ATTR (GradientTransform, SkSVGTransformType, SkSVGTransformType(SkMatrix::I())) SVG_ATTR(GradientUnits |
|
| SkSVGObjectBoundingBoxUnits (SkSVGObjectBoundingBoxUnits::Type::kObjectBoundingBox)) protected |
|
bool | parseAndSetAttribute (const char *, const char *) override |
|
bool | onAsPaint (const SkSVGRenderContext &, SkPaint *) const final |
|
virtual sk_sp< SkShader > | onMakeShader (const SkSVGRenderContext &, const SkColor4f *, const SkScalar *, int count, SkTileMode, const SkMatrix &localMatrix) const =0 |
|
void | appendChild (sk_sp< SkSVGNode >) override |
|
void | setTransform (const SkSVGTransformType &t) |
|
| ~SkSVGNode () override |
|
SkSVGTag | tag () const |
|
virtual void | appendChild (sk_sp< SkSVGNode >)=0 |
|
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) |
|
virtual bool | parseAndSetAttribute (const char *name, const char *value) |
|
| 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 {
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
const SkSVGLengthContext & lengthContext() const
PODArray< SkColor > colors
◆ 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
DEF_SWITCHES_START aot vmservice shared library name
The documentation for this class was generated from the following files: