Skia
2D Graphics Library
SkSVGMask.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 SkSVGMask_DEFINED
9 #define SkSVGMask_DEFINED
10 
13 
14 class SK_API SkSVGMask final : public SkSVGHiddenContainer {
15 public:
17  return sk_sp<SkSVGMask>(new SkSVGMask());
18  }
19 
24 
29 
30 private:
31  friend class SkSVGRenderContext;
32 
34 
35  bool parseAndSetAttribute(const char*, const char*) override;
36 
38  void renderMask(const SkSVGRenderContext&) const;
39 
41 };
42 
43 #endif // SkSVGMask_DEFINED
SkSVGTag
Definition: SkSVGNode.h:23
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition: SkSVGNode.h:203
Definition: SkSVGHiddenContainer.h:13
SkSVGHiddenContainer(SkSVGTag t)
Definition: SkSVGHiddenContainer.h:15
Definition: SkSVGTypes.h:116
Definition: SkSVGMask.h:14
void renderMask(const SkSVGRenderContext &) const
SkRect bounds(const SkSVGRenderContext &) const
bool parseAndSetAttribute(const char *, const char *) override
static sk_sp< SkSVGMask > Make()
Definition: SkSVGMask.h:16
Definition: SkSVGTypes.h:454
Definition: SkSVGRenderContext.h:61
Definition: SkSVGTransformableNode.h:14
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582