• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef PATH_ITERATOR_IMPL_H
17 #define PATH_ITERATOR_IMPL_H
18 
19 #include <memory>
20 
21 #include "base_impl.h"
22 #include "utils/scalar.h"
23 
24 namespace OHOS {
25 namespace Rosen {
26 namespace Drawing {
27 class PathIter;
28 class PathIterator;
29 enum class PathVerb;
30 class PathIteratorImpl : public BaseImpl {
31 public:
~PathIteratorImpl()32     ~PathIteratorImpl() override {}
PathIteratorImpl(const Path & p)33     explicit PathIteratorImpl(const Path& p) {}
34     virtual scalar ConicWeight() const = 0;
35     virtual PathVerb Next(Point* points) = 0;
36     virtual PathVerb Peek() = 0;
37 };
38 
39 class PathIterImpl : public BaseImpl {
40 public:
~PathIterImpl()41     ~PathIterImpl() override {}
PathIterImpl(const Path & p,bool forceClose)42     explicit PathIterImpl(const Path& p, bool forceClose) {}
43     virtual scalar ConicWeight() const = 0;
44     virtual PathVerb Next(Point* points) = 0;
45 };
46 } // namespace Drawing
47 } // namespace Rosen
48 } // namespace OHOS
49 #endif