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_ITouchEventPreviewer.h
19 * @brief This is the header file for the _ITouchEventPreviewer class.
21 * This header file contains the declarations of the %_ITouchEventPreviewer class.
24 #ifndef _FUI_INTERNAL_ITOUCH_EVENT_PREVIEWER_H_
25 #define _FUI_INTERNAL_ITOUCH_EVENT_PREVIEWER_H_
27 #include <FBaseTypes.h>
28 #include <FGraphics.h>
29 #include "FUi_IUiEventPreviewer.h"
30 #include "FUi_UiEventTypes.h"
32 namespace Tizen { namespace Ui
39 * @interface _ITouchEventPreviewer
40 * @brief This interface is used as the argument to the touch event listener.
43 * The listener interface for receiving touch events. The class that processes a touch event
44 * implements this interface, and the instance created with that class is registered with a UI control, using the control's
45 * AddTouchEventListener() method. When the touch event occurs, the OnTouchDoublePressed(), OnTouchFocusIn(), OnTouchFocusOut(), OnTouchLongPressed(), OnTouchLongPressed(), OnTouchMoved(), OnTouchPressed(), or OnTouchReleased() method of that instance is invoked.
47 class _ITouchEventPreviewer
48 : virtual public _IUiEventPreviewer
49 , virtual public Tizen::Base::Runtime::IEventListener
54 * This is the destructor for this class.
58 virtual ~_ITouchEventPreviewer(void) {}
61 * Notifies when an entity is touch pressed.
64 * @param[in] source The source of the event
65 * @param[in] currentPosition The current position
66 * @param[in] touchInfo The touch event information
68 virtual _UiTouchEventDelivery OnPreviewTouchPressed(const _Control& source, const _TouchInfo& touchinfo) = 0;
71 * Notifies when an entity is touch released.
74 * @param[in] source The source of the event
75 * @param[in] currentPosition The current position
76 * @param[in] touchInfo The touch event information
78 virtual _UiTouchEventDelivery OnPreviewTouchReleased(const _Control& source, const _TouchInfo& touchinfo) = 0;
81 * Notifies when an entity is touch moved.
84 * @param[in] source The source of the event
85 * @param[in] currentPosition The current position
86 * @param[in] touchInfo The touch event information
88 virtual _UiTouchEventDelivery OnPreviewTouchMoved(const _Control& source, const _TouchInfo& touchinfo) = 0;
91 * Notifies when an entity is touch cancelled.
94 * @param[in] source The source of the event
95 * @param[in] currentPosition The current position
96 * @param[in] touchInfo The touch event information
98 virtual _UiTouchEventDelivery OnPreviewTouchCanceled(const _Control& source, const _TouchInfo& touchinfo) = 0;
99 }; // _ITouchEventPreviewer
103 #endif // _FUI_INTERNAL_ITOUCH_EVENT_PREVIEWER_H_