#include <SkSVGCircle.h>
Definition at line 16 of file SkSVGCircle.h.
◆ Make()
◆ onAsPath()
Implements SkSVGNode.
Definition at line 40 of file SkSVGCircle.cpp.
40 {
44
47
49}
static SkPath Circle(SkScalar center_x, SkScalar center_y, SkScalar radius, SkPathDirection dir=SkPathDirection::kCW)
const SkSVGLengthContext & lengthContext() const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
constexpr float y() const
constexpr float x() const
◆ onDraw()
Implements SkSVGShape.
Definition at line 29 of file SkSVGCircle.cpp.
30 {
33 std::tie(
pos, r) = this->resolve(lctx);
34
35 if (r > 0) {
37 }
38}
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
◆ onObjectBoundingBox()
Reimplemented from SkSVGNode.
Definition at line 51 of file SkSVGCircle.cpp.
51 {
54}
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
◆ parseAndSetAttribute()
bool SkSVGCircle::parseAndSetAttribute |
( |
const char * |
n, |
|
|
const char * |
v |
|
) |
| |
|
overrideprotectedvirtual |
Reimplemented from SkSVGNode.
Definition at line 15 of file SkSVGCircle.cpp.
15 {
17 this->setCx(SkSVGAttributeParser::parse<SkSVGLength>("cx", n, v)) ||
18 this->setCy(SkSVGAttributeParser::parse<SkSVGLength>("cy", n, v)) ||
19 this->setR(SkSVGAttributeParser::parse<SkSVGLength>("r", n, v));
20}
virtual bool parseAndSetAttribute(const char *name, const char *value)
The documentation for this class was generated from the following files: