X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali%2Finternal%2Fwindow-system%2Fcommon%2Fwindow-impl.h;h=ef258cb539045e677858e879b622487ba58388e2;hb=07579c03b20ab6684f57810ddc1a889f9adcc6f9;hp=6e3b382c14768d045c9236e9b9d103a42d7b4ba3;hpb=2799cdcc2768a59f3001f3a0e89da960ccbb74a2;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/common/window-impl.h b/dali/internal/window-system/common/window-impl.h index 6e3b382..ef258cb 100644 --- a/dali/internal/window-system/common/window-impl.h +++ b/dali/internal/window-system/common/window-impl.h @@ -71,10 +71,11 @@ public: * @param[in] positionSize The position and size of the window * @param[in] name The window title * @param[in] className The window class name + * @param[in] type Window type. * @param[in] isTransparent Whether window is transparent * @return A newly allocated Window */ - static Window* New(const PositionSize& positionSize, const std::string& name, const std::string& className, bool isTransparent = false); + static Window* New(const PositionSize& positionSize, const std::string& name, const std::string& className, Dali::WindowType type, bool isTransparent = false); /** * @brief Create a new Window. This should only be called once by the Application class @@ -82,10 +83,11 @@ public: * @param[in] positionSize The position and size of the window * @param[in] name The window title * @param[in] className The window class name + * @param[in] type Window type. * @param[in] isTransparent Whether window is transparent * @return A newly allocated Window */ - static Window* New(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className, bool isTransparent = false); + static Window* New(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className, Dali::WindowType type, bool isTransparent = false); /** * @copydoc Dali::Window::SetClass() @@ -324,11 +326,16 @@ public: static Dali::Window Get(Dali::Actor actor); /** - * @copydoc Dali::DevelWindow::SetParent() + * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent) */ void SetParent(Dali::Window& parent); /** + * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent, bool belowParent) + */ + void SetParent(Dali::Window& parent, bool belowParent); + + /** * @copydoc Dali::DevelWindow::Unparent() */ void Unparent(); @@ -353,6 +360,11 @@ public: */ void SetAvailableOrientations(const Dali::Vector& orientations); + /** + * @copydoc Dali::DevelWindow::SetPositionSizeWithOrientation() + */ + void SetPositionSizeWithOrientation(PositionSize positionSize, WindowOrientation orientation); + public: // Dali::Internal::Adaptor::SceneHolder /** * @copydoc Dali::Internal::Adaptor::SceneHolder::GetNativeHandle @@ -369,6 +381,41 @@ public: // Dali::Internal::Adaptor::SceneHolder */ int32_t GetNativeId() const; + /** + * @copydoc Dali::DevelWindow::RequestMoveToServer() + */ + void RequestMoveToServer(); + + /** + * @copydoc Dali::DevelWindow::RequestResizeToServer() + */ + void RequestResizeToServer(WindowResizeDirection direction); + + /** + * @copydoc Dali::DevelWindow::EnableFloatingMode() + */ + void EnableFloatingMode(bool enable); + + /** + * @copydoc Dali::DevelWindow::IncludeInputRegion() + */ + void IncludeInputRegion(const Rect& inputRegion); + + /** + * @copydoc Dali::DevelWindow::ExcludeInputRegion() + */ + void ExcludeInputRegion(const Rect& inputRegion); + + /** + * @copydoc Dali::DevelWindow::SetNeedsRotationCompletedAcknowledgement() + */ + void SetNeedsRotationCompletedAcknowledgement(bool needAcknowledgement); + + /** + * @copydoc Dali::DevelWindow::SendRotationCompletedAcknowledgement() + */ + void SendRotationCompletedAcknowledgement(); + private: /** * @brief Enumeration for orietation mode. @@ -396,7 +443,7 @@ private: /** * Second stage initialization */ - void Initialize(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className); + void Initialize(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className, WindowType type); /** * Called when the window becomes iconified or deiconified. @@ -436,7 +483,7 @@ private: /** * @brief Called when the window is resized or moved by display server. * - * @param positionSize the updated window's position and size. + * @param[in] positionSize the updated window's position and size. */ void OnUpdatePositionSize(Dali::PositionSize& positionSize); @@ -460,6 +507,20 @@ private: */ bool IsOrientationAvailable(WindowOrientation orientation) const; + /** + * @brief Return the rect value to recalulate with the default system coordinates. + * + * Some native window APIs work the geometry value based on the default system coordinates. + * IncludeInputRegion() and ExcludeInputRegion() are one of them. + * When the window is rotated, current window's geometry already were set with the rotated angle. + * If IncludeInputRegion() or ExcludeInputRegion() are called with rotated angle by application, + * the rect's area should be re-calcuated on the default system coordinates. + * + * @param[in] rect the window's current position and size with current window rotation angle. + * @return the re-calculated rect on the default system coordinates. + */ + Rect RecalculateRect(const Rect& rect); + private: // Dali::Internal::Adaptor::SceneHolder /** * @copydoc Dali::Internal::Adaptor::SceneHolder::OnAdaptorSet @@ -573,22 +634,22 @@ private: bool mIsFocusAcceptable : 1; bool mIconified : 1; bool mOpaqueState : 1; - WindowType mType; + bool mWindowRotationAcknowledgement : 1; Dali::Window mParentWindow; OrientationPtr mOrientation; std::vector mAvailableAngles; int mPreferredAngle; - int mRotationAngle; ///< The angle of the rotation - int mWindowWidth; ///< The width of the window - int mWindowHeight; ///< The height of the window + int mRotationAngle; ///< The angle of the rotation + int mWindowWidth; ///< The width of the window + int mWindowHeight; ///< The height of the window - EventHandlerPtr mEventHandler; ///< The window events handler + EventHandlerPtr mEventHandler; ///< The window events handler - OrientationMode mOrientationMode; + OrientationMode mOrientationMode; ///< The physical screen mode is portrait or landscape - int mNativeWindowId; ///< The Native Window Id + int mNativeWindowId; ///< The Native Window Id // Signals SignalType mDeleteRequestSignal;