Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkSVGFeMorphology.h
Go to the documentation of this file.
1/*
2 * Copyright 2020 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 SkSVGFeMorphology_DEFINED
9#define SkSVGFeMorphology_DEFINED
10
13
14class SkSVGFeMorphology : public SkSVGFe {
15public:
20
21 enum class Operator {
22 kErode,
23 kDilate,
24 };
25
29
31 SVG_ATTR(Radius , Radius , Radius({0, 0}))
32
33protected:
35 const SkSVGFilterContext&) const override;
36
37 std::vector<SkSVGFeInputType> getInputs() const override { return {this->getIn()}; }
38
39 bool parseAndSetAttribute(const char*, const char*) override;
40
41private:
43
44 using INHERITED = SkSVGFe;
45};
46
47#endif // SkSVGFeMorphology_DEFINED
SkSVGTag
Definition SkSVGNode.h:23
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition SkSVGNode.h:203
SkScalar SkSVGNumberType
Definition SkSVGTypes.h:27
bool parseAndSetAttribute(const char *, const char *) override
sk_sp< SkImageFilter > onMakeImageFilter(const SkSVGRenderContext &, const SkSVGFilterContext &) const override
static sk_sp< SkSVGFeMorphology > Make()
std::vector< SkSVGFeInputType > getInputs() const override
Definition ref_ptr.h:256