Flutter Engine
The Flutter Engine
third_party
skia
modules
svg
include
SkSVGPath.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 SkSVGPath_DEFINED
9
#define SkSVGPath_DEFINED
10
11
#include "
include/core/SkPath.h
"
12
#include "
modules/svg/include/SkSVGShape.h
"
13
14
class
SK_API
SkSVGPath
final :
public
SkSVGShape
{
15
public
:
16
static
sk_sp<SkSVGPath>
Make
() {
return
sk_sp<SkSVGPath>
(
new
SkSVGPath
()); }
17
18
SVG_ATTR
(
Path
,
SkPath
,
SkPath
())
19
20
protected:
21
bool
parseAndSetAttribute(const
char
*, const
char
*) override;
22
23
void
onDraw(
SkCanvas
*, const
SkSVGLengthContext
&, const
SkPaint
&,
24
SkPathFillType
) const override;
25
26
SkPath
onAsPath(const
SkSVGRenderContext
&) const override;
27
28
SkRect
onObjectBoundingBox(const
SkSVGRenderContext
&) const override;
29
30
private:
31
SkSVGPath
();
32
33
using
INHERITED
=
SkSVGShape
;
34
};
35
36
#endif
// SkSVGPath_DEFINED
SK_API
#define SK_API
Definition:
SkAPI.h:35
SkPathFillType
SkPathFillType
Definition:
SkPathTypes.h:11
SkPath.h
INHERITED
#define INHERITED(method,...)
Definition:
SkRecorder.cpp:128
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:210
SkSVGShape.h
SkCanvas
Definition:
SkCanvas.h:106
SkPaint
Definition:
SkPaint.h:44
SkPath
Definition:
SkPath.h:59
SkSVGLengthContext
Definition:
SkSVGRenderContext.h:29
SkSVGPath
Definition:
SkSVGPath.h:14
SkSVGPath::Make
static sk_sp< SkSVGPath > Make()
Definition:
SkSVGPath.h:16
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:63
SkSVGShape
Definition:
SkSVGShape.h:17
sk_sp
Definition:
SkRefCnt.h:220
flutter::Path
CanvasPath Path
Definition:
dart_ui.cc:58
SkRect
Definition:
extension.cpp:13
Generated on Sun Jun 23 2024 21:56:08 for Flutter Engine by
1.9.4