Skia
2D Graphics Library
SkSVGFeImage.h
Go to the documentation of this file.
1
/*
2
* Copyright 2021 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 SkSVGFeImage_DEFINED
9
#define SkSVGFeImage_DEFINED
10
11
#include "
modules/svg/include/SkSVGFe.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
14
class
SK_API
SkSVGFeImage
:
public
SkSVGFe
{
15
public
:
16
static
sk_sp<SkSVGFeImage>
Make
() {
return
sk_sp<SkSVGFeImage>
(
new
SkSVGFeImage
()); }
17
18
SVG_ATTR
(Href ,
SkSVGIRI
,
SkSVGIRI
())
19
SVG_ATTR
(PreserveAspectRatio,
SkSVGPreserveAspectRatio
,
SkSVGPreserveAspectRatio
())
20
21
protected:
22
bool
parseAndSetAttribute(const
char
*, const
char
*) override;
23
24
sk_sp
<
SkImageFilter
> onMakeImageFilter(const
SkSVGRenderContext
&,
25
const
SkSVGFilterContext
&) const override;
26
27
std::vector<
SkSVGFeInputType
> getInputs()
const override
{
return
{}; }
28
29
private
:
30
SkSVGFeImage
() : INHERITED(
SkSVGTag
::
kFeImage
) {}
31
32
using
INHERITED =
SkSVGFe
;
33
};
34
35
#endif
// SkSVGFeImage_DEFINED
SkSVGFe.h
SkSVGTag
SkSVGTag
Definition:
SkSVGNode.h:23
SkSVGTag::kFeImage
@ kFeImage
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:203
SkSVGTypes.h
SkImageFilter
Base class for image filters.
Definition:
SkImageFilter.h:35
SkSVGFeImage
Definition:
SkSVGFeImage.h:14
SkSVGFeImage::Make
static sk_sp< SkSVGFeImage > Make()
Definition:
SkSVGFeImage.h:16
SkSVGFeInputType
Definition:
SkSVGTypes.h:635
SkSVGFe
Definition:
SkSVGFe.h:18
SkSVGFe::SkSVGFe
SkSVGFe(SkSVGTag t)
Definition:
SkSVGFe.h:65
SkSVGFilterContext
Definition:
SkSVGFilterContext.h:21
SkSVGIRI
Definition:
SkSVGTypes.h:152
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:61
sk_sp
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition:
SkRefCnt.h:220
SkSVGPreserveAspectRatio
Definition:
SkSVGTypes.h:585
modules
svg
include
SkSVGFeImage.h
Generated by
Doxygen
1.9.1 on Tue Nov 14 2023