2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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
9 // http://floralicense.org/license/
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.
18 * @file FUi_FingerInfo.h
19 * @brief This is the header file for the _FingerInfo class.
21 * This header file contains the declarations of the _FingerInfo class. @n
24 #ifndef _FUI_INTERNAL_FINGER_INFO_H
25 #define _FUI_INTERNAL_FINGER_INFO_H
27 #include <FGrpPoint.h>
28 #include "FUi_UiTouchEvent.h"
30 namespace Tizen { namespace Ui
32 const unsigned int INVALID_POINT_ID = 999;
33 const unsigned int SINGLE_POINT_ID = 0;
35 class _OSP_EXPORT_ _FingerInfo
39 * This is the default class constructor.
45 * This is the default class destructor.
52 * This method sets device Id
56 void SetDeviceId(unsigned long deviceId);
59 * This method sets point Id
63 void SetPointId(unsigned long pointId);
66 * This method sets current point
70 void SetPoint(const Tizen::Graphics::Point& screenPoint, const Tizen::Graphics::Point& point);
73 * This method sets current status
77 void SetStatus(const _TouchStatus status);
80 * This method sets start point
84 void SetStartPoint(const Tizen::Graphics::Point& point);
87 * This method sets touch move allowance flag
88 * this flag is used to check move allowance
92 void SetMoveReady(bool moveReady);
95 * This method returns deviceId
98 * @return The deviceId
100 unsigned long GetDeviceId(void) const;
103 * This method returns converted pointId
106 * @return The touch pointId
108 unsigned long GetPointId(void) const;
111 * This method returns touch point
114 * @return The touch point
116 Tizen::Graphics::Point GetPoint(void) const;
119 * This method returns touch point
122 * @return The touch point
124 Tizen::Graphics::Point GetScreenPoint(void) const;
127 * This method returns current touch status
130 * @return The touch status
132 _TouchStatus GetStatus(void) const;
135 * This method returns touch start point
138 * @return The touch start point
140 Tizen::Graphics::Point GetStartPoint(void) const;
143 * This method returns touch move allowance
146 * @return The touch move allowance
148 bool GetMoveReady(void) const;
151 unsigned long __deviceId;
152 unsigned long __pointId;
153 _TouchStatus __status;
154 Tizen::Graphics::Point __point;
155 Tizen::Graphics::Point __startPoint;
156 Tizen::Graphics::Point __screenPoint;
157 bool __touchMoveReady;
161 #endif // _FUI_INTERNAL_FINGER_INFO_H