Flutter Engine
The Flutter Engine
SkSVGTransformableNode.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 SkSVGTransformableNode_DEFINED
9#define SkSVGTransformableNode_DEFINED
10
13
15public:
16 void setTransform(const SkSVGTransformType& t) { fTransform = t; }
17
18protected:
20
21 bool onPrepareToRender(SkSVGRenderContext*) const override;
22
23 void onSetAttribute(SkSVGAttribute, const SkSVGValue&) override;
24
25 void mapToParent(SkPath*) const;
26
27 void mapToParent(SkRect*) const;
28
29private:
30 // FIXME: should be sparse
31 SkSVGTransformType fTransform;
32
33 using INHERITED = SkSVGNode;
34};
35
36#endif // SkSVGTransformableNode_DEFINED
#define SK_API
Definition: SkAPI.h:35
#define INHERITED(method,...)
Definition: SkRecorder.cpp:128
SkSVGAttribute
SkSVGTag
Definition: SkSVGNode.h:23
Definition: SkPath.h:59
virtual void onSetAttribute(SkSVGAttribute, const SkSVGValue &)
Definition: SkSVGNode.h:175
virtual bool onPrepareToRender(SkSVGRenderContext *) const
Definition: SkSVGNode.cpp:62
SkSVGNode(SkSVGTag)
Definition: SkSVGNode.cpp:17
void setTransform(const SkSVGTransformType &t)