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_TouchEventInfoImpl.h
19 * @brief This is the header file for _TouchEventInfoImpl class.
22 * This header file contains declarations of _TouchEventInfoImpl class.
25 #ifndef _FUI_INTERNAL_TOUCH_EVENT_INFO_IMPL_H_
26 #define _FUI_INTERNAL_TOUCH_EVENT_INFO_IMPL_H_
28 #include <FBaseObject.h>
29 #include <FGrpPoint.h>
30 #include "FUi_UiTouchEvent.h"
32 namespace Tizen { namespace Ui
37 * @class _TouchEventInfoImpl
39 * @brief This class is used as the argument to touch event listener.
41 * This class is used as the argument of touch event listener. When touch event event is generated,
42 * the @c TouchEvent instance calls the registered ITouchEventListener with an instance of this
43 * class as the argument.
46 class _TouchEventInfoImpl
47 : public Tizen::Base::Object
50 static _TouchEventInfoImpl* CreateInstanceN(TouchEventInfo* pPublic);
52 ~_TouchEventInfoImpl(void);
54 void SetTouchEventInfo(const _TouchInfo& touchInfo, const Tizen::Graphics::Point startPosition);
56 unsigned long GetPointId(void) const;
58 Tizen::Graphics::Point GetStartPosition(void) const;
60 Tizen::Graphics::Point GetCurrentPosition(void) const;
62 _TouchStatus GetTouchStatus(void) const;
64 bool IsFlicked(void) const;
68 * This is the default class constructor.
70 * @param[in] source - A pointer to the Object instance which contains this instance.
71 * @param[in] status - TouchStatus
73 _TouchEventInfoImpl(TouchEventInfo* pPublic);
76 * This is the copy constructor for this class.
78 _TouchEventInfoImpl(const _TouchEventInfoImpl&);
81 * This is the assignment operator for this class.
83 _TouchEventInfoImpl& operator =(const _TouchEventInfoImpl&);
87 TouchEventInfo* __pPublic;
88 unsigned long __pointId;
89 _TouchStatus __touchStatus;
90 Tizen::Graphics::Point __startPosition;
91 Tizen::Graphics::Point __currentPosition;
97 #endif // _FUI_INTERNAL_TOUCH_EVENT_INFO_IMPL_H_