• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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 TEST_UNITTEST_CORE_GESTURES_PAN_RECOGNIZER_TEST_UTILS_H
17 #define TEST_UNITTEST_CORE_GESTURES_PAN_RECOGNIZER_TEST_UTILS_H
18 
19 namespace OHOS::Ace::NG {
20 namespace {
21 constexpr int32_t FORTY_FIVE_DEGREES = 45;
22 constexpr int32_t TWENTY_DEGREES = 20;
23 constexpr int32_t QUADRANT_COUNT = 8;
24 constexpr float HALF_CIRCLE = 180.0f;
25 
26 enum class PanQuadrantDirection {
27     QUADRANT_ZERO = 0,
28     QUADRANT_ONE = 1,
29     QUADRANT_TWO = 2,
30     QUADRANT_THREE = 3,
31     QUADRANT_FOUR = 4,
32     QUADRANT_FIVE = 5,
33     QUADRANT_SIX = 6,
34     QUADRANT_SEVEN = 7,
35     LINE_ZERO = 8,
36     LINE_ONE = 9,
37     LINE_TWO = 10,
38     LINE_THREE = 11,
39     LINE_FOUR = 12,
40     LINE_FIVE = 13,
41     LINE_SIX = 14,
42     LINE_SEVEN = 15,
43 };
44 
45 } // namespace
46 
47 } // namespace OHOS::Ace::NG
48 
49 #endif // TEST_UNITTEST_CORE_GESTURES_PAN_RECOGNIZER_TEST_UTILS_H