Flutter Engine
The Flutter Engine
third_party
skia
modules
svg
include
SkSVGClipPath.h
Go to the documentation of this file.
1
/*
2
* Copyright 2016 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 SkSVGClipPath_DEFINED
9
#define SkSVGClipPath_DEFINED
10
11
#include "
modules/svg/include/SkSVGHiddenContainer.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
14
class
SK_API
SkSVGClipPath
final :
public
SkSVGHiddenContainer
{
15
public
:
16
static
sk_sp<SkSVGClipPath>
Make
() {
17
return
sk_sp<SkSVGClipPath>
(
new
SkSVGClipPath
());
18
}
19
20
SVG_ATTR
(ClipPathUnits,
SkSVGObjectBoundingBoxUnits
,
21
SkSVGObjectBoundingBoxUnits
(
SkSVGObjectBoundingBoxUnits::Type::kUserSpaceOnUse
))
22
23
private
:
24
friend
class
SkSVGRenderContext
;
25
26
SkSVGClipPath
();
27
28
bool
parseAndSetAttribute
(
const
char
*,
const
char
*)
override
;
29
30
SkPath
resolveClip(
const
SkSVGRenderContext
&)
const
;
31
32
using
INHERITED
=
SkSVGHiddenContainer
;
33
};
34
35
#endif
// SkSVGClipPath_DEFINED
SK_API
#define SK_API
Definition:
SkAPI.h:35
SkSVGHiddenContainer.h
SVG_ATTR
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition:
SkSVGNode.h:210
SkSVGTypes.h
SkPath
Definition:
SkPath.h:59
SkSVGClipPath
Definition:
SkSVGClipPath.h:14
SkSVGClipPath::Make
static sk_sp< SkSVGClipPath > Make()
Definition:
SkSVGClipPath.h:16
SkSVGHiddenContainer
Definition:
SkSVGHiddenContainer.h:13
SkSVGHiddenContainer::SkSVGHiddenContainer
SkSVGHiddenContainer(SkSVGTag t)
Definition:
SkSVGHiddenContainer.h:15
SkSVGNode::parseAndSetAttribute
virtual bool parseAndSetAttribute(const char *name, const char *value)
Definition:
SkSVGNode.cpp:90
SkSVGObjectBoundingBoxUnits
Definition:
SkSVGTypes.h:454
SkSVGObjectBoundingBoxUnits::Type::kUserSpaceOnUse
@ kUserSpaceOnUse
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:63
sk_sp
Definition:
SkRefCnt.h:220
Generated on Sun Jun 23 2024 21:56:07 for Flutter Engine by
1.9.4