Flutter Engine
The Flutter Engine
SkSVGEllipse.h
Go to the documentation of this file.
1/*
2 * Copyright 2016 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 SkSVGEllipse_DEFINED
9#define SkSVGEllipse_DEFINED
10
13
14struct SkRect;
15
16class SK_API SkSVGEllipse final : public SkSVGShape {
17public:
19
22
25
26protected:
27 bool parseAndSetAttribute(const char*, const char*) override;
28
29 void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
30 SkPathFillType) const override;
31
32 SkPath onAsPath(const SkSVGRenderContext&) const override;
33
34private:
36
37 SkRect resolve(const SkSVGLengthContext&) const;
38
39 using INHERITED = SkSVGShape;
40};
41
42#endif // SkSVGEllipse_DEFINED
#define SK_API
Definition: SkAPI.h:35
SkPathFillType
Definition: SkPathTypes.h:11
#define INHERITED(method,...)
Definition: SkRecorder.cpp:128
#define SVG_OPTIONAL_ATTR(attr_name, attr_type)
Definition: SkSVGNode.h:220
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition: SkSVGNode.h:210
Definition: SkPath.h:59
static sk_sp< SkSVGEllipse > Make()
Definition: SkSVGEllipse.h:18