Flutter Engine
The Flutter Engine
SkSVGShape.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 SkSVGShape_DEFINED
9#define SkSVGShape_DEFINED
10
11#include "include/core/SkPath.h"
13
15class SkPaint;
16
18public:
19 void appendChild(sk_sp<SkSVGNode>) override;
20
21protected:
23
24 void onRender(const SkSVGRenderContext&) const final;
25
26 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
27 SkPathFillType) const = 0;
28
29private:
31};
32
33#endif // SkSVGShape_DEFINED
#define SK_API
Definition: SkAPI.h:35
SkPathFillType
Definition: SkPathTypes.h:11
SkSVGTag
Definition: SkSVGNode.h:23
virtual void onRender(const SkSVGRenderContext &) const =0
virtual void appendChild(sk_sp< SkSVGNode >)=0
virtual void onDraw(SkCanvas *, const SkSVGLengthContext &, const SkPaint &, SkPathFillType) const =0