Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkSVGContainer.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 SkSVGContainer_DEFINED
9#define SkSVGContainer_DEFINED
10
13
15public:
16 void appendChild(sk_sp<SkSVGNode>) override;
17
18protected:
19 explicit SkSVGContainer(SkSVGTag);
20
21 void onRender(const SkSVGRenderContext&) const override;
22
23 SkPath onAsPath(const SkSVGRenderContext&) const override;
24
25 SkRect onObjectBoundingBox(const SkSVGRenderContext&) const override;
26
27 bool hasChildren() const final;
28
29 // TODO: add some sort of child iterator, and hide the container.
31
32private:
34};
35
36#endif // SkSVGContainer_DEFINED
#define SK_API
Definition SkAPI.h:35
SkSVGTag
Definition SkSVGNode.h:23
skia_private::STArray< 1, sk_sp< SkSVGNode >, true > fChildren
virtual SkRect onObjectBoundingBox(const SkSVGRenderContext &) const
Definition SkSVGNode.h:172
virtual void onRender(const SkSVGRenderContext &) const =0
virtual void appendChild(sk_sp< SkSVGNode >)=0
virtual bool hasChildren() const
Definition SkSVGNode.h:170
virtual SkPath onAsPath(const SkSVGRenderContext &) const =0