Skia
2D Graphics Library
SkSVGFeOffset.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 SkSVGFeOffset_DEFINED
9 #define SkSVGFeOffset_DEFINED
10 
13 
14 class SK_API SkSVGFeOffset : public SkSVGFe {
15 public:
17 
20 
21 protected:
22  sk_sp<SkImageFilter> onMakeImageFilter(const SkSVGRenderContext&,
23  const SkSVGFilterContext&) const override;
24 
25  std::vector<SkSVGFeInputType> getInputs() const override { return {this->getIn()}; }
26 
27  bool parseAndSetAttribute(const char*, const char*) override;
28 
29 private:
31 
32  using INHERITED = SkSVGFe;
33 };
34 
35 #endif // SkSVGFeOffset_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
Base class for image filters.
Definition: SkImageFilter.h:35
Definition: SkSVGTypes.h:635
Definition: SkSVGFeOffset.h:14
bool parseAndSetAttribute(const char *, const char *) override
static sk_sp< SkSVGFeOffset > Make()
Definition: SkSVGFeOffset.h:16
Definition: SkSVGFe.h:18
SkSVGFe(SkSVGTag t)
Definition: SkSVGFe.h:65
Definition: SkSVGFilterContext.h:21
Definition: SkSVGRenderContext.h:61
Definition: SkSVGTransformableNode.h:14
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220