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"
11 
12 namespace impeller::interop {
13 
14 class Path final
15  : public Object<Path, IMPELLER_INTERNAL_HANDLE_NAME(ImpellerPath)> {
16  public:
17  explicit Path(const SkPath& path);
18 
19  ~Path();
20 
21  Path(const Path&) = delete;
22 
23  Path& operator=(const Path&) = delete;
24 
25  const SkPath& GetPath() const;
26 
27  ImpellerRect GetBounds() const;
28 
29  private:
30  SkPath path_;
31 };
32 
33 } // namespace impeller::interop
34 
35 #endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_PATH_H_
const SkPath & GetPath() const
Definition: path.cc:13
ImpellerRect GetBounds() const
Definition: path.cc:17
Path(const SkPath &path)
Definition: path.cc:9
Path(const Path &)=delete
Path & operator=(const Path &)=delete