Flutter Engine
The Flutter Engine
third_party
skia
modules
svg
src
SkSVGStop.cpp
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
#include "
include/private/base/SkTPin.h
"
9
#include "
modules/svg/include/SkSVGRenderContext.h
"
10
#include "
modules/svg/include/SkSVGStop.h
"
11
#include "
modules/svg/include/SkSVGValue.h
"
12
13
SkSVGStop::SkSVGStop() :
INHERITED
(
SkSVGTag
::
kStop
) {}
14
15
bool
SkSVGStop::parseAndSetAttribute
(
const
char
* n,
const
char
* v) {
16
return
INHERITED::parseAndSetAttribute
(n, v) ||
17
this->setOffset(SkSVGAttributeParser::parse<SkSVGLength>(
"offset"
, n, v));
18
}
INHERITED
#define INHERITED(method,...)
Definition:
SkRecorder.cpp:128
SkSVGTag
SkSVGTag
Definition:
SkSVGNode.h:23
SkSVGTag::kStop
@ kStop
SkSVGRenderContext.h
SkSVGStop.h
SkSVGValue.h
SkTPin.h
SkSVGNode::parseAndSetAttribute
virtual bool parseAndSetAttribute(const char *name, const char *value)
Definition:
SkSVGNode.cpp:90
SkSVGStop::parseAndSetAttribute
bool parseAndSetAttribute(const char *, const char *) override
Definition:
SkSVGStop.cpp:15
Generated on Sun Jun 23 2024 21:56:08 for Flutter Engine by
1.9.4