2020-10-15 22:10:29 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2016 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SkSVGStop_DEFINED
|
|
|
|
#define SkSVGStop_DEFINED
|
|
|
|
|
|
|
|
#include "modules/svg/include/SkSVGHiddenContainer.h"
|
|
|
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
|
|
|
|
|
|
class SkSVGLengthContext;
|
|
|
|
|
|
|
|
class SkSVGStop : public SkSVGHiddenContainer {
|
|
|
|
public:
|
|
|
|
static sk_sp<SkSVGStop> Make() {
|
|
|
|
return sk_sp<SkSVGStop>(new SkSVGStop());
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-02-08 18:30:45 +00:00
|
|
|
SVG_ATTR(Offset, SkSVGLength, SkSVGLength(0, SkSVGLength::Unit::kPercentage))
|
2020-10-15 22:10:29 +00:00
|
|
|
|
|
|
|
protected:
|
2021-02-08 18:30:45 +00:00
|
|
|
bool parseAndSetAttribute(const char*, const char*) override;
|
2020-10-15 22:10:29 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
SkSVGStop();
|
|
|
|
|
|
|
|
using INHERITED = SkSVGHiddenContainer;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SkSVGStop_DEFINED
|