Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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,...)
#define SVG_OPTIONAL_ATTR(attr_name, attr_type)
Definition SkSVGNode.h:213
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition SkSVGNode.h:203
static sk_sp< SkSVGEllipse > Make()