Skia
2D Graphics Library
SkSVGRadialGradient.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkSVGRadialGradient_DEFINED
9 #define SkSVGRadialGradient_DEFINED
10 
13 
14 class SK_API SkSVGRadialGradient final : public SkSVGGradient {
15 public:
18  }
19 
25 
26 protected:
27  bool parseAndSetAttribute(const char*, const char*) override;
28 
30  const SkColor4f*, const SkScalar*, int count,
31  SkTileMode, const SkMatrix&) const override;
32 private:
34 
35  using INHERITED = SkSVGGradient;
36 };
37 
38 #endif // SkSVGRadialGradient_DEFINED
#define SVG_OPTIONAL_ATTR(attr_name, attr_type)
Definition: SkSVGNode.h:213
float SkScalar
Definition: SkScalar.h:14
SkTileMode
Definition: SkTileMode.h:13
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
Definition: SkSVGGradient.h:19
SVG_ATTR(GradientTransform, SkSVGTransformType, SkSVGTransformType(SkMatrix::I())) SVG_ATTR(GradientUnits
Definition: SkSVGTypes.h:116
Definition: SkSVGRadialGradient.h:14
static sk_sp< SkSVGRadialGradient > Make()
Definition: SkSVGRadialGradient.h:16
sk_sp< SkShader > onMakeShader(const SkSVGRenderContext &, const SkColor4f *, const SkScalar *, int count, SkTileMode, const SkMatrix &) const override
bool parseAndSetAttribute(const char *, const char *) override
Definition: SkSVGRenderContext.h:61
Definition: SkSVGTransformableNode.h:14
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
RGBA color value, holding four floating point components.