Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUiCtrl_GalleryViewEventInfo.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://floralicense.org/license/
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 #ifndef _FUI_CTRL_INTERNAL_GALLERY_VIEW_EVENT_INFO_H_
18 #define _FUI_CTRL_INTERNAL_GALLERY_VIEW_EVENT_INFO_H_
19
20 #include <FBaseObject.h>
21 #include "FUi_UiTouchEvent.h"
22
23 namespace Tizen { namespace Ui { namespace Controls {
24
25 class _GalleryViewEventInfo
26         : public Tizen::Base::Object
27 {
28 public:
29                 _GalleryViewEventInfo(void);
30                 _GalleryViewEventInfo(_TouchInfo& touchInfo);
31                 virtual ~_GalleryViewEventInfo(void);
32
33                 // touch Info access
34                 _TouchStatus GetTouchStatus(void) const;
35                 Tizen::Graphics::Point GetCurrentPosition(void) const;
36
37                 // flick info access
38                 void SetFlicked(bool flicked);
39                 bool IsFlicked(void) const;
40                 void SetFlickPosition(Tizen::Graphics::Point flickPos);
41                 Tizen::Graphics::Point GetFlickPosition(void) const;
42                 void SetFlickTime(int flickTime);
43                 int GetFlickTime(void) const;
44
45                 // pinch info access
46                 void SetPinchCenterPosition(Tizen::Graphics::Point centerPos);
47                 Tizen::Graphics::Point GetPinchCenterPosition(void) const;
48                 void SetPinchArea(int area);
49                 int GetPinchArea(void) const;
50
51                 unsigned long GetPointId(void) const;
52
53 private:
54                 _GalleryViewEventInfo(const _GalleryViewEventInfo& rhs);
55                 _GalleryViewEventInfo& operator=(const _GalleryViewEventInfo& rhs);
56
57 private:
58                 _TouchInfo* __pTouchInfo;
59
60                 bool __flicked;
61                 Tizen::Graphics::Point __flickPosition;
62                 int __flickTime;
63
64                 Tizen::Graphics::Point __pinchCenterPosition;
65                 int __PinchArea;
66 }; // _GalleryViewEventInfo
67
68 }}} // Tizen::Ui::Controls
69
70 #endif // _FUI_CTRL_INTERNAL_GALLERY_VIEW_EVENT_INFO_H_