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.
17 #include <FBaseSysLog.h>
18 #include "FUiCtrl_GalleryViewEventInfo.h"
20 namespace Tizen { namespace Ui { namespace Controls {
22 _GalleryViewEventInfo::_GalleryViewEventInfo(void)
25 , __flickPosition(0, 0)
27 , __pinchCenterPosition(0, 0)
33 _GalleryViewEventInfo::_GalleryViewEventInfo(_TouchInfo& touchInfo)
34 : __pTouchInfo(&touchInfo)
36 , __flickPosition(0, 0)
38 , __pinchCenterPosition(0, 0)
44 _GalleryViewEventInfo::~_GalleryViewEventInfo(void)
50 _GalleryViewEventInfo::GetTouchStatus(void) const
52 SysAssert(__pTouchInfo != null);
53 return __pTouchInfo->GetTouchStatus();
56 Tizen::Graphics::Point
57 _GalleryViewEventInfo::GetCurrentPosition(void) const
59 SysAssert(__pTouchInfo != null);
60 return __pTouchInfo->GetCurrentPosition();
64 _GalleryViewEventInfo::SetFlicked(bool flicked)
70 _GalleryViewEventInfo::IsFlicked(void) const
76 _GalleryViewEventInfo::SetFlickPosition(Tizen::Graphics::Point flickPos)
78 __flickPosition = flickPos;
81 Tizen::Graphics::Point
82 _GalleryViewEventInfo::GetFlickPosition(void) const
84 return __flickPosition;
88 _GalleryViewEventInfo::SetFlickTime(int flickTime)
90 __flickTime = flickTime;
94 _GalleryViewEventInfo::GetFlickTime(void) const
100 _GalleryViewEventInfo::SetPinchCenterPosition(Tizen::Graphics::Point centerPos)
102 __pinchCenterPosition = centerPos;
105 Tizen::Graphics::Point
106 _GalleryViewEventInfo::GetPinchCenterPosition(void) const
108 return __pinchCenterPosition;
112 _GalleryViewEventInfo::SetPinchArea(int distance)
114 __PinchArea = distance;
118 _GalleryViewEventInfo::GetPinchArea(void) const
124 _GalleryViewEventInfo::GetPointId(void) const
126 return __pTouchInfo->GetPointId();
129 }}} // Tizen::Ui::Controls