| 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 "impeller/geometry/path.h"
10 #include "impeller/toolkit/interop/impeller.h"
11 #include "impeller/toolkit/interop/object.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 const SkPath& GetPath() const;
27
28 private:
29 SkPath path_;
30 };
31
32 } // namespace impeller::interop
33
34 #endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_PATH_H_
impeller::interop::Object
Definition: object.h:56
impeller::interop::Path
Definition: path.h:16
impeller::interop::Path::GetPath
const SkPath & GetPath() const
Definition: path.cc:13
impeller::interop::Path::Path
Path(const SkPath &path)
Definition: path.cc:9
impeller::interop::Path::Path
Path(const Path &)=delete
impeller::interop::Path::~Path
~Path()
impeller::interop::Path::operator=
Path & operator=(const Path &)=delete
path.h
impeller.h
impeller::interop
Definition: context_gles.cc:12
object.h