X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Fwindow-devel.h;h=07756addc49f39d0b554544f80caf4cec605bb0f;hb=2af28226ffba4a607cbb88e177b64f5fe611368a;hp=bbdac10d7c4af616a1041f56d0ff3f121ee10d29;hpb=fa12086fd916090f2b258265e20cfbd803857068;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/window-devel.h b/dali/devel-api/adaptor-framework/window-devel.h index bbdac10..07756ad 100644 --- a/dali/devel-api/adaptor-framework/window-devel.h +++ b/dali/devel-api/adaptor-framework/window-devel.h @@ -35,6 +35,8 @@ typedef Signal< void () > EventProcessingFinishedSignalType; ///< Event Pr typedef Signal< void (const KeyEvent&) > KeyEventSignalType; ///< Key event signal type +typedef Signal< bool (const KeyEvent&) > KeyEventGeneratedSignalType; ///< Key event generated signal type + typedef Signal< void (const TouchData&) > TouchSignalType; ///< Touch signal type typedef Signal< void (const WheelEvent&) > WheelEventSignalType; ///< Touched signal type @@ -53,7 +55,7 @@ DALI_ADAPTOR_API void SetPositionSize( Window window, PositionSize positionSize * @param[in] window The window instance * @return A valid handle to a RenderTaskList */ -Dali::RenderTaskList GetRenderTaskList( Window window ); +DALI_ADAPTOR_API Dali::RenderTaskList GetRenderTaskList( Window window ); /** * @brief Retrieve the window that the given actor is added to. @@ -84,6 +86,18 @@ DALI_ADAPTOR_API EventProcessingFinishedSignalType& EventProcessingFinishedSigna DALI_ADAPTOR_API KeyEventSignalType& KeyEventSignal( Window window ); /** + * @brief This signal is emitted when key event is received. + * + * A callback of the following type may be connected: + * @code + * bool YourCallbackName(const KeyEvent& event); + * @endcode + * @param[in] window The window instance + * @return The signal to connect to + */ +DALI_ADAPTOR_API KeyEventGeneratedSignalType& KeyEventGeneratedSignal( Window window ); + +/** * @brief This signal is emitted when the screen is touched and when the touch ends * (i.e. the down & up touch events only). * @@ -113,6 +127,43 @@ DALI_ADAPTOR_API TouchSignalType& TouchSignal( Window window ); */ DALI_ADAPTOR_API WheelEventSignalType& WheelEventSignal( Window window ); +/** + * @brief Sets parent window of the window. + * + * After setting that, these windows do together when raise-up, lower and iconified/deiconified. + * Initially, the window is located on top of the parent. The window can go below parent by calling Lower(). + * If parent's window stack is changed by calling Raise() or Lower(), child windows are located on top of the parent again. + * + * @param[in] window The window instance + * @param[in] parent The parent window instance + */ +DALI_ADAPTOR_API void SetParent( Window window, Window parent ); + +/** + * @brief Unsets parent window of the window. + * + * After unsetting, the window is disconnected his parent window. + * + * @param[in] window The window instance + */ +DALI_ADAPTOR_API void Unparent( Window window ); + +/** + * @brief Gets parent window of the window. + * + * @param[in] window The window instance + * @return The parent window of the window + */ +DALI_ADAPTOR_API Window GetParent( Window window ); + +/** + * @brief Downcast sceneHolder to window + * + * @param[in] handle The handle need to downcast + * @return The window cast from SceneHolder + */ +DALI_ADAPTOR_API Window DownCast( BaseHandle handle ); + } // namespace DevelWindow } // namespace Dali