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 FUiIDragDropEventListener.h
19 * @brief This is the header file for the %IDragDropEventListener interface.
21 * This header file contains the declarations of the %IDragDropEventListener interface.
23 #ifndef _FUI_IDRAG_DROP_EVENT_LISTENER_H_
24 #define _FUI_IDRAG_DROP_EVENT_LISTENER_H_
26 #include <FBaseRtIEventListener.h>
27 #include <FBaseTypes.h>
28 #include <FGraphics.h>
30 namespace Tizen { namespace Ui
36 * @interface IDragDropEventListener
37 * @brief This interface implements the listener for a drag and drop event.
41 * The %IDragDropEventListener interface is the listener interface for receiving drag and drop events.
42 * The class that processes a drag and drop event implements this interface, and the instance created with that class is
43 * registered with a UI control, using the Control::AddDragDropEventListener() method. When the drag and drop event occurs, a
44 * method of that instance is invoked.
46 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/event_listener.htm">Event Listeners</a>.
48 class _OSP_EXPORT_ IDragDropEventListener
49 : virtual public Tizen::Base::Runtime::IEventListener
54 // This method is for internal use only.
55 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
57 // This is the destructor for this class.
61 virtual ~IDragDropEventListener(void) {}
64 * Called when an entity is dragged.
68 * @param[in] source The source of the event
69 * @param[in] startPosition The start position
70 * @param[in] currentPosition The current position
72 virtual void OnTouchDragged(const Tizen::Ui::Control& source,
73 const Tizen::Graphics::Point& startPosition, const Tizen::Graphics::Point& currentPosition) = 0;
76 * Called when an entity is dropped.
80 * @param[in] source The source of the event
81 * @param[in] startPosition The start position
82 * @param[in] currentPosition The current position
84 virtual void OnTouchDropped(const Tizen::Ui::Control& source,
85 const Tizen::Graphics::Point& startPosition, const Tizen::Graphics::Point& currentPosition) = 0;
88 // Reserved virtual methods for later extension
90 // The following methods are reserved and may change its name at any time without prior notice.
92 virtual void IDragDropEventListener_Reserved1(void) {}
94 // Reserved virtual methods for later extension
96 // The following methods are reserved and may change its name at any time without prior notice.
98 virtual void IDragDropEventListener_Reserved2(void) {}
100 // Reserved virtual methods for later extension
102 // The following methods are reserved and may change its name at any time without prior notice.
104 virtual void IDragDropEventListener_Reserved3(void) {}
105 }; // IDragDropEventListener
109 #endif // _FUI_IDRAG_DROP_EVENT_LISTENER_H_