From ef6d82fc896625b5cf338dc58dab30afd2774555 Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Mon, 10 Jul 2023 14:40:00 +0900 Subject: [PATCH] Add IsFloatingModeEnabled api in devel window Change-Id: I9770c4f841494dbbc789b6e7b2700ab3a1d7f9c4 --- dali/devel-api/adaptor-framework/window-devel.cpp | 5 +++++ dali/devel-api/adaptor-framework/window-devel.h | 8 ++++++++ dali/internal/window-system/common/window-impl.cpp | 5 +++++ dali/internal/window-system/common/window-impl.h | 5 +++++ 4 files changed, 23 insertions(+) diff --git a/dali/devel-api/adaptor-framework/window-devel.cpp b/dali/devel-api/adaptor-framework/window-devel.cpp index 22aea8c..519aaad 100644 --- a/dali/devel-api/adaptor-framework/window-devel.cpp +++ b/dali/devel-api/adaptor-framework/window-devel.cpp @@ -205,6 +205,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 ca8be54..46f380d 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 371e4aa..bf94b81 100644 --- a/dali/internal/window-system/common/window-impl.cpp +++ b/dali/internal/window-system/common/window-impl.cpp @@ -1328,6 +1328,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 331ea05..c5d6665 100644 --- a/dali/internal/window-system/common/window-impl.h +++ b/dali/internal/window-system/common/window-impl.h @@ -469,6 +469,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); -- 2.7.4