Skia
2D Graphics Library
SkSVGStop.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 SkSVGStop_DEFINED
9
#define SkSVGStop_DEFINED
10
11
#include "
modules/svg/include/SkSVGHiddenContainer.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
14
class
SkSVGLengthContext
;
15
16
class
SK_API
SkSVGStop
:
public
SkSVGHiddenContainer
{
17
public
:
18
static
sk_sp<SkSVGStop>
Make
() {
19
return
sk_sp<SkSVGStop>
(
new
SkSVGStop
());
20
}
21
22
23
SVG_ATTR
(Offset,
SkSVGLength
,
SkSVGLength
(0,
SkSVGLength::Unit::kPercentage
))
24
25
protected
:
26
bool
parseAndSetAttribute
(
const
char
*,
const
char
*)
override
;
27
28
private
:
29
SkSVGStop
();
30
31
using
INHERITED
=
SkSVGHiddenContainer
;
32
};
33
34
#endif
// SkSVGStop_DEFINED
SkSVGHiddenContainer.h
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:203
SkSVGTypes.h
SkSVGHiddenContainer
Definition:
SkSVGHiddenContainer.h:13
SkSVGHiddenContainer::SkSVGHiddenContainer
SkSVGHiddenContainer(SkSVGTag t)
Definition:
SkSVGHiddenContainer.h:15
SkSVGLengthContext
Definition:
SkSVGRenderContext.h:27
SkSVGLength
Definition:
SkSVGTypes.h:116
SkSVGLength::Unit::kPercentage
@ kPercentage
SkSVGStop
Definition:
SkSVGStop.h:16
SkSVGStop::Make
static sk_sp< SkSVGStop > Make()
Definition:
SkSVGStop.h:18
SkSVGStop::parseAndSetAttribute
bool parseAndSetAttribute(const char *, const char *) override
SkSVGTransformableNode
Definition:
SkSVGTransformableNode.h:14
sk_sp
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition:
SkRefCnt.h:220
modules
svg
include
SkSVGStop.h
Generated by
Doxygen
1.9.1 on Tue Nov 14 2023