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
11
#include "
modules/svg/include/SkSVGFe.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
14
class
SK_API
SkSVGFeOffset
:
public
SkSVGFe
{
15
public
:
16
static
sk_sp<SkSVGFeOffset>
Make
() {
return
sk_sp<SkSVGFeOffset>
(
new
SkSVGFeOffset
()); }
17
18
SVG_ATTR
(Dx,
SkSVGNumberType
,
SkSVGNumberType
(0))
19
SVG_ATTR
(Dy,
SkSVGNumberType
,
SkSVGNumberType
(0))
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
:
30
SkSVGFeOffset
() :
INHERITED
(
SkSVGTag
::
kFeOffset
) {}
31
32
using
INHERITED =
SkSVGFe
;
33
};
34
35
#endif
// SkSVGFeOffset_DEFINED
SkSVGFe.h
SkSVGTag
SkSVGTag
Definition:
SkSVGNode.h:23
SkSVGTag::kFeOffset
@ kFeOffset
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:203
SkSVGTypes.h
SkSVGNumberType
SkScalar SkSVGNumberType
Definition:
SkSVGTypes.h:27
SkImageFilter
Base class for image filters.
Definition:
SkImageFilter.h:35
SkSVGFeInputType
Definition:
SkSVGTypes.h:635
SkSVGFeOffset
Definition:
SkSVGFeOffset.h:14
SkSVGFeOffset::parseAndSetAttribute
bool parseAndSetAttribute(const char *, const char *) override
SkSVGFeOffset::Make
static sk_sp< SkSVGFeOffset > Make()
Definition:
SkSVGFeOffset.h:16
SkSVGFe
Definition:
SkSVGFe.h:18
SkSVGFe::SkSVGFe
SkSVGFe(SkSVGTag t)
Definition:
SkSVGFe.h:65
SkSVGFilterContext
Definition:
SkSVGFilterContext.h:21
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:61
SkSVGTransformableNode
Definition:
SkSVGTransformableNode.h:14
sk_sp
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition:
SkRefCnt.h:220
modules
svg
include
SkSVGFeOffset.h
Generated by
Doxygen
1.9.1 on Tue Nov 14 2023