Flutter Engine
The Flutter Engine
third_party
skia
modules
svg
include
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
11
#include "
modules/svg/include/SkSVGShape.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
14
struct
SkRect
;
15
16
class
SK_API
SkSVGEllipse
final :
public
SkSVGShape
{
17
public
:
18
static
sk_sp<SkSVGEllipse>
Make
() {
return
sk_sp<SkSVGEllipse>
(
new
SkSVGEllipse
()); }
19
20
SVG_ATTR
(Cx,
SkSVGLength
,
SkSVGLength
(0))
21
SVG_ATTR
(Cy,
SkSVGLength
,
SkSVGLength
(0))
22
23
SVG_OPTIONAL_ATTR
(Rx,
SkSVGLength
)
24
SVG_OPTIONAL_ATTR
(Ry,
SkSVGLength
)
25
26
protected:
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
34
private:
35
SkSVGEllipse
();
36
37
SkRect
resolve(const
SkSVGLengthContext
&) const;
38
39
using
INHERITED
=
SkSVGShape
;
40
};
41
42
#endif
// SkSVGEllipse_DEFINED
SK_API
#define SK_API
Definition:
SkAPI.h:35
SkPathFillType
SkPathFillType
Definition:
SkPathTypes.h:11
INHERITED
#define INHERITED(method,...)
Definition:
SkRecorder.cpp:128
SVG_OPTIONAL_ATTR
#define SVG_OPTIONAL_ATTR(attr_name, attr_type)
Definition:
SkSVGNode.h:220
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:210
SkSVGShape.h
SkSVGTypes.h
SkCanvas
Definition:
SkCanvas.h:106
SkPaint
Definition:
SkPaint.h:44
SkPath
Definition:
SkPath.h:59
SkSVGEllipse
Definition:
SkSVGEllipse.h:16
SkSVGEllipse::Make
static sk_sp< SkSVGEllipse > Make()
Definition:
SkSVGEllipse.h:18
SkSVGLengthContext
Definition:
SkSVGRenderContext.h:29
SkSVGLength
Definition:
SkSVGTypes.h:116
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:63
SkSVGShape
Definition:
SkSVGShape.h:17
sk_sp
Definition:
SkRefCnt.h:220
SkRect
Definition:
extension.cpp:13
Generated on Sun Jun 23 2024 21:56:07 for Flutter Engine by
1.9.4