Skia
2D Graphics Library
Main Page
Namespaces
Namespace List
Namespace Members
All
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
w
Functions
b
c
d
e
f
g
m
n
r
s
w
Variables
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
i
k
m
n
o
p
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
l
o
p
r
s
t
u
v
y
Enumerations
a
b
c
d
e
f
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerator
k
Related Functions
:
a
d
f
g
i
m
n
o
p
r
s
t
Files
File List
File Members
All
_
a
g
k
n
o
s
t
Functions
a
g
o
s
t
Variables
k
s
Typedefs
g
s
Enumerations
g
s
Enumerator
k
n
Macros
_
g
s
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
SkSVGUse.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 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 SkSVGUse_DEFINED
9
#define SkSVGUse_DEFINED
10
11
#include "
modules/svg/include/SkSVGTransformableNode.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
18
class
SK_API
SkSVGUse
final :
public
SkSVGTransformableNode
{
19
public
:
20
static
sk_sp<SkSVGUse>
Make
() {
return
sk_sp<SkSVGUse>
(
new
SkSVGUse
()); }
21
22
void
appendChild
(
sk_sp<SkSVGNode>
)
override
;
23
24
SVG_ATTR
(X ,
SkSVGLength
,
SkSVGLength
(0))
25
SVG_ATTR
(Y ,
SkSVGLength
,
SkSVGLength
(0))
26
SVG_ATTR
(Href,
SkSVGIRI
,
SkSVGIRI
())
27
28
protected:
29
bool
onPrepareToRender(
SkSVGRenderContext
*) const override;
30
void
onRender(const
SkSVGRenderContext
&) const override;
31
SkPath
onAsPath(const
SkSVGRenderContext
&) const override;
32
SkRect
onObjectBoundingBox(const
SkSVGRenderContext
&) const override;
33
34
private:
35
SkSVGUse
();
36
37
bool
parseAndSetAttribute(const
char
*, const
char
*) override;
38
39
using
INHERITED
=
SkSVGTransformableNode
;
40
};
41
42
#endif
// SkSVGUse_DEFINED
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:203
SkSVGTransformableNode.h
SkSVGTypes.h
SkPath
SkPath contain geometry.
Definition:
SkPath.h:58
SkRefCnt
Definition:
SkRefCnt.h:119
SkSVGIRI
Definition:
SkSVGTypes.h:152
SkSVGLength
Definition:
SkSVGTypes.h:116
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:61
SkSVGTransformableNode
Definition:
SkSVGTransformableNode.h:14
SkSVGUse
Implements support for <use> (reference) elements.
Definition:
SkSVGUse.h:18
SkSVGUse::Make
static sk_sp< SkSVGUse > Make()
Definition:
SkSVGUse.h:20
SkSVGUse::appendChild
void appendChild(sk_sp< SkSVGNode >) override
sk_sp
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition:
SkRefCnt.h:220
SkRect
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition:
SkRect.h:582
modules
svg
include
SkSVGUse.h
Generated by
Doxygen
1.9.1 on Tue Nov 14 2023