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 FUiCtrl_ISplitPanelEventListener.h
19 * @brief This is the header file for the _ISplitPanelEventListener interface.
21 * This header file contains the declarations of the _ISplitPanelEventListener
24 #ifndef _FUI_CTRL_INTERNAL_ISPLIT_PANEL_EVENT_LISTENER_H_
25 #define _FUI_CTRL_INTERNAL_ISPLIT_PANEL_EVENT_LISTENER_H_
27 #include <FBaseRtIEventListener.h>
28 #include <FBaseObject.h>
29 #include <FUiCtrlSplitPanelTypes.h>
31 namespace Tizen { namespace Ui { namespace Controls
36 * @interface _ISplitPanelEventListener
37 * @brief This interface implements the listener for all splitpanel events.
40 * The %_ISplitPanelEventListener interface is the listener interface for receiving SplitPanel events, which are fired when the divider moves or is double pressed.
41 * The class that processes a SplitPanel event implements this interface, and the instance created with that class is registered with
42 * a UI control, using the control's AddSplitPanelEventListener() method. When the splitpanle divider is moved, the OnDividerPositionChanged()
43 * method of that instance is invoked.
45 * For more information on the class features, see <a href="../com.osp.cppappprogramming.help/html/dev_guide/ui/implementing_splitpanel.htm">SplitPanel</a>.
47 class _ISplitPanelEventListener
48 : public Tizen::Base::Runtime::IEventListener
52 * This is the destructor for this class.
56 virtual ~_ISplitPanelEventListener(void) {}
61 * Called when the divider moves.
64 * @param[in] source The source of the event
65 * @param[in] position The position of the divider
67 virtual void OnDividerPositionChanged(Tizen::Ui::Controls::_SplitPanel& source, int position) = 0;
70 * Called when the divider is double pressed.
74 * @param[in] source The source of the event
75 * @remark This method is invoked when an divider is double pressed.
77 virtual void OnDividerDoublePressed(Tizen::Ui::Controls::_SplitPanel& source) = 0;
79 }; // _ISplitPanelEventListener
81 }}} // Tizen::Ui::Controls
83 #endif // _FUI_CTRL_INTERNAL_ISPLIT_PANEL_EVENT_LISTENER_H_