Skia
2D Graphics Library
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 
13 
14 class SK_API SkSVGClipPath final : public SkSVGHiddenContainer {
15 public:
17  return sk_sp<SkSVGClipPath>(new SkSVGClipPath());
18  }
19 
22 
23 private:
24  friend class SkSVGRenderContext;
25 
27 
28  bool parseAndSetAttribute(const char*, const char*) override;
29 
31 
33 };
34 
35 #endif // SkSVGClipPath_DEFINED
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition: SkSVGNode.h:203
SkPath contain geometry.
Definition: SkPath.h:58
Definition: SkSVGClipPath.h:14
bool parseAndSetAttribute(const char *, const char *) override
static sk_sp< SkSVGClipPath > Make()
Definition: SkSVGClipPath.h:16
SkPath resolveClip(const SkSVGRenderContext &) const
SVG_ATTR(ClipPathUnits, SkSVGObjectBoundingBoxUnits, SkSVGObjectBoundingBoxUnits(SkSVGObjectBoundingBoxUnits::Type::kUserSpaceOnUse)) private SkSVGClipPath()
Definition: SkSVGHiddenContainer.h:13
SkSVGHiddenContainer(SkSVGTag t)
Definition: SkSVGHiddenContainer.h:15
Definition: SkSVGTypes.h:454
Definition: SkSVGRenderContext.h:61
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220