From: joogab.yun Date: Mon, 10 Jul 2023 05:40:00 +0000 (+0900) Subject: [Tizen] Add IsFloatingModeEnabled api in devel window X-Git-Tag: accepted/tizen/7.0/unified/20230718.090141^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=74e399b468457518659f8b9eac48e811702296f5 [Tizen] Add IsFloatingModeEnabled api in devel window Change-Id: I9770c4f841494dbbc789b6e7b2700ab3a1d7f9c4 --- diff --git a/dali/devel-api/adaptor-framework/window-devel.cpp b/dali/devel-api/adaptor-framework/window-devel.cpp index 897ea9f..7e0c3dc 100644 --- a/dali/devel-api/adaptor-framework/window-devel.cpp +++ b/dali/devel-api/adaptor-framework/window-devel.cpp @@ -201,6 +201,11 @@ void EnableFloatingMode(Window window, bool enable) GetImplementation(window).EnableFloatingMode(enable); } +bool IsFloatingModeEnabled(Window window) +{ + return GetImplementation(window).IsFloatingModeEnabled(); +} + void IncludeInputRegion(Window window, const Rect& inputRegion) { GetImplementation(window).IncludeInputRegion(inputRegion); diff --git a/dali/devel-api/adaptor-framework/window-devel.h b/dali/devel-api/adaptor-framework/window-devel.h index 9cfaa8f..d2cab95 100644 --- a/dali/devel-api/adaptor-framework/window-devel.h +++ b/dali/devel-api/adaptor-framework/window-devel.h @@ -349,6 +349,14 @@ DALI_ADAPTOR_API void RequestResizeToServer(Window window, WindowResizeDirection DALI_ADAPTOR_API void EnableFloatingMode(Window window, bool enable); /** + * @brief Returns whether the window is floating mode or not. + * + * @param[in] window The window instance. + * @return True if the window is enabled floating mode, false otherwise. + */ +DALI_ADAPTOR_API bool IsFloatingModeEnabled(Window window); + +/** * @brief Includes input region. * * This function inlcudes input regions. diff --git a/dali/internal/window-system/common/window-impl.cpp b/dali/internal/window-system/common/window-impl.cpp index 962584a..c20f287 100644 --- a/dali/internal/window-system/common/window-impl.cpp +++ b/dali/internal/window-system/common/window-impl.cpp @@ -1295,6 +1295,11 @@ void Window::EnableFloatingMode(bool enable) mWindowBase->EnableFloatingMode(enable); } +bool Window::IsFloatingModeEnabled() +{ + return mWindowBase->IsFloatingModeEnabled(); +} + void Window::IncludeInputRegion(const Rect& inputRegion) { DALI_LOG_RELEASE_INFO("Window (%p), WinId (%d), IncludeInputRegion, (%d,%d), (%d x %d)\n", this, mNativeWindowId, inputRegion.x, inputRegion.y, inputRegion.width, inputRegion.height); diff --git a/dali/internal/window-system/common/window-impl.h b/dali/internal/window-system/common/window-impl.h index bdf5d62..757782d 100644 --- a/dali/internal/window-system/common/window-impl.h +++ b/dali/internal/window-system/common/window-impl.h @@ -464,6 +464,11 @@ public: // Dali::Internal::Adaptor::SceneHolder void EnableFloatingMode(bool enable); /** + * @copydoc Dali::DevelWindow::IsFloatingModeEnabled() + */ + bool IsFloatingModeEnabled(); + + /** * @copydoc Dali::DevelWindow::IncludeInputRegion() */ void IncludeInputRegion(const Rect& inputRegion);