Move header into proper file
[platform/core/api/gesture.git] / include / gesture_common_internal.h
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __TIZEN_UIX_GESTURE_COMMON_INTERNAL_H__
18 #define __TIZEN_UIX_GESTURE_COMMON_INTERNAL_H__
19
20 #include <tizen.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 /**
27  * @file gesture_common_internal.h
28  * @brief This file contains gesture's internal common struct info.
29  */
30
31 /**
32  * @brief       Enumeration for gesture hand type.
33  * @details     If the HAND_GESTURE_NO_SELECTED_HAND is used, the system will consider with right hand
34  *
35  * @since_tizen @if WEARABLE 6.0 @endif
36  */
37 typedef enum {
38         HAND_GESTURE_NO_SELECTED_HAND   = 1,    /**< Gesture with hand, no selected hand */
39         HAND_GESTURE_LEFT_HAND          = 2,    /**< Gesture with left hand */
40         HAND_GESTURE_RIGHT_HAND         = 3,    /**< Gesture with right hand */
41 } hand_gesture_handtype_e;
42
43 /**
44  * @brief       Enumeration for gesture movement.
45  * @details     Determining whether to move the hand in one direction or back 
46  *
47  * @since_tizen @if WEARABLE 6.0 @endif
48  */
49 typedef enum
50 {
51         HAND_GESTURE_WORK_MODE_ONE_WAY  = 1,    /**< move the hand in one direction */
52         HAND_GESTURE_WORK_MODE_ROUND_TRIP       = 2,    /**< move the hand in round trip */
53         HAND_GESTURE_WORK_MODE_MIXED            = 3,    /**< move the hand in mixed */
54         HAND_GESTURE_WORK_MODE_UNDEFINED        = 4,    /**< move the hand in undefined */
55 } hand_gesture_workmode_e;
56
57 /**
58  * @brief       Enumeration for gesture event types.
59  * @details     With regards to type of the gesture, gesture_get_event() returns one of the followings.
60  * @since_tizen @if WEARABLE 6.0 @endif
61  */
62 typedef enum {
63         HAND_GESTURE_EVENT_NONE         = 1,    /**< Detected nothing */
64         HAND_GESTURE_EVENT_DETECTED             = 2,    /**< Detected the gesture */
65         HAND_GESTURE_HAND_MOVE_RIGHT    = 3,    /**< move right detected (only for HAND_GESTURE_LEFT_HAND_MOVE or HAND_GESTURE_RIGHT_HAND_MOVE) */
66         HAND_GESTURE_HAND_MOVE_LEFT     = 4,    /**< move left detected (only for HAND_GESTURE_LEFT_HAND_MOVE or HAND_GESTURE_RIGHT_HAND_MOVE) */
67         HAND_GESTURE_HAND_MOVE_UP       = 5,    /**< move up detected (only for HAND_GESTURE_LEFT_HAND_MOVE or HAND_GESTURE_RIGHT_HAND_MOVE) */
68         HAND_GESTURE_HAND_MOVE_DOWN     = 6,    /**< move down detected (only for HAND_GESTURE_LEFT_HAND_MOVE or HAND_GESTURE_RIGHT_HAND_MOVE) */
69         HAND_GESTURE_HAND_MOVE_PUSH     = 7,    /**< move push detected (only for HAND_GESTURE_LEFT_HAND_MOVE or HAND_GESTURE_RIGHT_HAND_MOVE) */
70 } hand_gesture_event_e;
71
72
73 #ifdef __cplusplus
74 }
75 #endif
76
77 #endif /* __TIZEN_UIX_GESTURE_COMMON_INTERNAL_H__ */