modify license, permission and remove ^M char
[platform/framework/native/uifw.git] / src / ui / FUi_FingerInfo.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0/
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an ”AS IS” BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file                        FUi_FingerInfo.cpp
20  * @brief               This is the implementation file for _FingerInfo class.
21  */
22
23 // Includes
24 #include <FBaseSysLog.h>
25 #include "FUi_FingerInfo.h"
26
27 using namespace Tizen::Graphics;
28
29 namespace Tizen { namespace Ui
30 {
31
32 _FingerInfo::_FingerInfo(void)
33         : __deviceId(INVALID_POINT_ID)
34         , __pointId(INVALID_POINT_ID)
35         , __status(_TOUCH_FOCUS_OUT)
36         , __point(0, 0)
37         , __startPoint(0, 0)
38         , __screenPoint(0, 0)
39         ,__touchMoveReady(false)
40 {
41 }
42
43 _FingerInfo::~_FingerInfo(void)
44 {
45 }
46
47 void
48 _FingerInfo::SetDeviceId(unsigned long deviceId)
49 {
50         __deviceId = deviceId;
51 }
52
53 unsigned long
54 _FingerInfo::GetDeviceId(void) const
55 {
56         return __deviceId;
57 }
58
59 void
60 _FingerInfo::SetPointId(unsigned long pointId)
61 {
62         __pointId = pointId;
63 }
64
65 void
66 _FingerInfo::SetPoint(const FloatPoint& screenPoint, const FloatPoint& point)
67 {
68         __screenPoint = screenPoint;
69         __point = point;
70 }
71
72 unsigned long
73 _FingerInfo::GetPointId(void) const
74 {
75         return __pointId;
76 }
77
78 FloatPoint
79 _FingerInfo::GetPoint(void) const
80 {
81         return __point;
82 }
83
84 FloatPoint
85 _FingerInfo::GetScreenPoint(void) const
86 {
87         return __screenPoint;
88 }
89
90 void
91 _FingerInfo::SetStatus(const _TouchStatus status)
92 {
93         __status = status;
94 }
95
96 _TouchStatus
97 _FingerInfo::GetStatus(void) const
98 {
99         return __status;
100 }
101
102 void
103 _FingerInfo::SetStartPoint(const FloatPoint& point)
104 {
105         __startPoint = point;
106 }
107
108 FloatPoint
109 _FingerInfo::GetStartPoint(void) const
110 {
111         return __startPoint;
112 }
113
114 void
115 _FingerInfo::SetMoveReady(bool moveReady)
116 {
117         __touchMoveReady = moveReady;
118 }
119
120 bool
121 _FingerInfo::GetMoveReady(void) const
122 {
123         return __touchMoveReady;
124 }
125
126 } } //Tizen::Ui