Flutter Impeller
path.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_IMPELLER_TOOLKIT_INTEROP_PATH_H_
6 #define FLUTTER_IMPELLER_TOOLKIT_INTEROP_PATH_H_
7 
8 #include "flutter/third_party/skia/include/core/SkPath.h"
9 #include "flutter/third_party/skia/include/core/SkPathBuilder.h"
12 
13 namespace impeller::interop {
14 
15 class Path final
16  : public Object<Path, IMPELLER_INTERNAL_HANDLE_NAME(ImpellerPath)> {
17  public:
18  explicit Path(const SkPath& path);
19 
20  ~Path();
21 
22  Path(const Path&) = delete;
23 
24  Path& operator=(const Path&) = delete;
25 
26  SkPath GetPath() const;
27 
28  ImpellerRect GetBounds() const;
29 
30  private:
31  SkPathBuilder path_;
32 };
33 
34 } // namespace impeller::interop
35 
36 #endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_PATH_H_
ImpellerRect GetBounds() const
Definition: path.cc:19
SkPath GetPath() const
Definition: path.cc:15
Path(const SkPath &path)
Definition: path.cc:11
Path(const Path &)=delete
Path & operator=(const Path &)=delete