Flutter Engine
The Flutter Engine
third_party
skia
modules
svg
include
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
11
#include "
modules/svg/include/SkSVGGradient.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
14
class
SK_API
SkSVGRadialGradient
final :
public
SkSVGGradient
{
15
public
:
16
static
sk_sp<SkSVGRadialGradient>
Make
() {
17
return
sk_sp<SkSVGRadialGradient>
(
new
SkSVGRadialGradient
());
18
}
19
20
SVG_ATTR
(Cx,
SkSVGLength
,
SkSVGLength
(50,
SkSVGLength::Unit::kPercentage
))
21
SVG_ATTR
(Cy,
SkSVGLength
,
SkSVGLength
(50,
SkSVGLength::Unit::kPercentage
))
22
SVG_ATTR
(
R
,
SkSVGLength
,
SkSVGLength
(50,
SkSVGLength::Unit::kPercentage
))
23
SVG_OPTIONAL_ATTR
(Fx,
SkSVGLength
)
24
SVG_OPTIONAL_ATTR
(Fy,
SkSVGLength
)
25
26
protected
:
27
bool
parseAndSetAttribute
(
const
char
*,
const
char
*)
override
;
28
29
sk_sp<SkShader>
onMakeShader
(
const
SkSVGRenderContext
&,
30
const
SkColor4f
*,
const
SkScalar
*,
int
count
,
31
SkTileMode
,
const
SkMatrix
&)
const override
;
32
private
:
33
SkSVGRadialGradient
();
34
35
using
INHERITED
=
SkSVGGradient
;
36
};
37
38
#endif
// SkSVGRadialGradient_DEFINED
count
int count
Definition:
FontMgrTest.cpp:50
SK_API
#define SK_API
Definition:
SkAPI.h:35
INHERITED
#define INHERITED(method,...)
Definition:
SkRecorder.cpp:128
SkSVGGradient.h
SVG_OPTIONAL_ATTR
#define SVG_OPTIONAL_ATTR(attr_name, attr_type)
Definition:
SkSVGNode.h:220
SkSVGTypes.h
SkTileMode
SkTileMode
Definition:
SkTileMode.h:13
SkMatrix
Definition:
SkMatrix.h:54
SkSVGGradient
Definition:
SkSVGGradient.h:19
SkSVGGradient::onMakeShader
virtual sk_sp< SkShader > onMakeShader(const SkSVGRenderContext &, const SkColor4f *, const SkScalar *, int count, SkTileMode, const SkMatrix &localMatrix) const =0
SkSVGGradient::parseAndSetAttribute
bool parseAndSetAttribute(const char *, const char *) override
Definition:
SkSVGGradient.cpp:15
SkSVGGradient::SVG_ATTR
SVG_ATTR(GradientTransform, SkSVGTransformType, SkSVGTransformType(SkMatrix::I())) SVG_ATTR(GradientUnits
SkSVGLength
Definition:
SkSVGTypes.h:116
SkSVGLength::Unit::kPercentage
@ kPercentage
SkSVGRadialGradient
Definition:
SkSVGRadialGradient.h:14
SkSVGRadialGradient::Make
static sk_sp< SkSVGRadialGradient > Make()
Definition:
SkSVGRadialGradient.h:16
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:63
sk_sp
Definition:
SkRefCnt.h:220
SkScalar
float SkScalar
Definition:
extension.cpp:12
R
#define R(r)
SkColor4f
Generated on Sun Jun 23 2024 21:56:08 for Flutter Engine by
1.9.4