Skia
2D Graphics Library
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
"
12
#include "
modules/svg/include/SkSVGTransformableNode.h
"
13
14
class
SkSVGLengthContext
;
15
class
SkPaint
;
16
17
class
SK_API
SkSVGShape
:
public
SkSVGTransformableNode
{
18
public
:
19
void
appendChild
(
sk_sp<SkSVGNode>
)
override
;
20
21
protected
:
22
SkSVGShape
(
SkSVGTag
);
23
24
void
onRender
(
const
SkSVGRenderContext
&)
const
final
;
25
26
virtual
void
onDraw
(
SkCanvas
*,
const
SkSVGLengthContext
&,
const
SkPaint
&,
27
SkPathFillType
)
const
= 0;
28
29
private
:
30
using
INHERITED
=
SkSVGTransformableNode
;
31
};
32
33
#endif
// SkSVGShape_DEFINED
SkPathFillType
SkPathFillType
Definition:
SkPathTypes.h:11
SkPath.h
SkSVGTag
SkSVGTag
Definition:
SkSVGNode.h:23
SkSVGTransformableNode.h
SkCanvas
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition:
SkCanvas.h:99
SkPaint
SkPaint controls options applied when drawing.
Definition:
SkPaint.h:44
SkRefCnt
Definition:
SkRefCnt.h:119
SkSVGLengthContext
Definition:
SkSVGRenderContext.h:27
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:61
SkSVGShape
Definition:
SkSVGShape.h:17
SkSVGShape::SkSVGShape
SkSVGShape(SkSVGTag)
SkSVGShape::appendChild
void appendChild(sk_sp< SkSVGNode >) override
SkSVGShape::onDraw
virtual void onDraw(SkCanvas *, const SkSVGLengthContext &, const SkPaint &, SkPathFillType) const =0
SkSVGShape::onRender
void onRender(const SkSVGRenderContext &) const final
SkSVGTransformableNode
Definition:
SkSVGTransformableNode.h:14
SkSVGTransformableNode::SkSVGTransformableNode
SkSVGTransformableNode(SkSVGTag)
sk_sp< SkSVGNode >
modules
svg
include
SkSVGShape.h
Generated by
Doxygen
1.9.1 on Tue Nov 14 2023