Flutter Engine
The Flutter Engine
third_party
skia
modules
svg
include
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
constexpr
SkSVGTag
tag =
SkSVGTag::kStop
;
19
20
static
sk_sp<SkSVGStop>
Make
() {
21
return
sk_sp<SkSVGStop>
(
new
SkSVGStop
());
22
}
23
24
SVG_ATTR
(Offset,
SkSVGLength
,
SkSVGLength
(0,
SkSVGLength::Unit::kPercentage
))
25
26
protected
:
27
bool
parseAndSetAttribute
(
const
char
*,
const
char
*)
override
;
28
29
private
:
30
SkSVGStop
();
31
32
using
INHERITED
=
SkSVGHiddenContainer
;
33
};
34
35
#endif
// SkSVGStop_DEFINED
SK_API
#define SK_API
Definition:
SkAPI.h:35
INHERITED
#define INHERITED(method,...)
Definition:
SkRecorder.cpp:128
SkSVGHiddenContainer.h
SkSVGTag
SkSVGTag
Definition:
SkSVGNode.h:23
SkSVGTag::kStop
@ kStop
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:210
SkSVGTypes.h
SkSVGHiddenContainer
Definition:
SkSVGHiddenContainer.h:13
SkSVGHiddenContainer::SkSVGHiddenContainer
SkSVGHiddenContainer(SkSVGTag t)
Definition:
SkSVGHiddenContainer.h:15
SkSVGLengthContext
Definition:
SkSVGRenderContext.h:29
SkSVGLength
Definition:
SkSVGTypes.h:116
SkSVGLength::Unit::kPercentage
@ kPercentage
SkSVGNode::parseAndSetAttribute
virtual bool parseAndSetAttribute(const char *name, const char *value)
Definition:
SkSVGNode.cpp:90
SkSVGStop
Definition:
SkSVGStop.h:16
SkSVGStop::Make
static sk_sp< SkSVGStop > Make()
Definition:
SkSVGStop.h:20
sk_sp
Definition:
SkRefCnt.h:220
Generated on Sun Jun 23 2024 21:56:08 for Flutter Engine by
1.9.4