From 59200facca505d7eaf0da68d9924bb4a7d794366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Thu, 13 Mar 2025 14:52:55 +0800 Subject: [PATCH 1/7] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- arkui/window_manager/oh_window.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h index c747b7b2b..ce7964d3f 100644 --- a/arkui/window_manager/oh_window.h +++ b/arkui/window_manager/oh_window.h @@ -247,6 +247,23 @@ int32_t OH_WindowManager_GetWindowProperties( */ int32_t OH_WindowManager_Snapshot(int32_t windowId, OH_PixelmapNative* pixelMap); +/** + * @brief Get Layout info of all windows on the selected display. + * + * @param display IdIndicate the id of display. + * @param windowLayoutInfo Pointer to the layout information of the visible windows on the specified screen. + * @param windowLayoutInfoSize Pointer to the size of the array of layout information of the visible windows on the specified screen. + * @return Returns the result code. + * {@link OK} the function call is successful, return pixel map ptr in pixelMap. + * {@link WINDOW_MANAGER_ERRORCODE_INVALID_PARAM} parameter error. + * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported. + * {@link WINDOW_MANAGER_ERRORCODE_STATE_ABNORMAL} this window state is abnormal. + * {@link WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL} the window manager service works abnormally. + * @since 16 + */ +int32_t OH_WindowManager_GetAllWindowLayoutInfo(int64_t displayId, + WindowManager_Rect* windowLayoutInfo, size_t* windowLayoutInfoSize); + #ifdef __cplusplus } #endif -- Gitee From 75255ffd088c8c65b19639659bc5370c55af768b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Thu, 13 Mar 2025 15:46:48 +0800 Subject: [PATCH 2/7] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- arkui/window_manager/oh_window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h index ce7964d3f..4ce3ed0b6 100644 --- a/arkui/window_manager/oh_window.h +++ b/arkui/window_manager/oh_window.h @@ -259,7 +259,7 @@ int32_t OH_WindowManager_Snapshot(int32_t windowId, OH_PixelmapNative* pixelMap) * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported. * {@link WINDOW_MANAGER_ERRORCODE_STATE_ABNORMAL} this window state is abnormal. * {@link WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL} the window manager service works abnormally. - * @since 16 + * @since 17 */ int32_t OH_WindowManager_GetAllWindowLayoutInfo(int64_t displayId, WindowManager_Rect* windowLayoutInfo, size_t* windowLayoutInfoSize); -- Gitee From 4225a6913788d2d28af534adb4ebafaba2bb5992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Thu, 13 Mar 2025 20:11:37 +0800 Subject: [PATCH 3/7] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- arkui/window_manager/oh_window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h index 4ce3ed0b6..e5568309d 100644 --- a/arkui/window_manager/oh_window.h +++ b/arkui/window_manager/oh_window.h @@ -262,7 +262,7 @@ int32_t OH_WindowManager_Snapshot(int32_t windowId, OH_PixelmapNative* pixelMap) * @since 17 */ int32_t OH_WindowManager_GetAllWindowLayoutInfo(int64_t displayId, - WindowManager_Rect* windowLayoutInfo, size_t* windowLayoutInfoSize); + WindowManager_Rect** windowLayoutInfo, size_t* windowLayoutInfoSize); #ifdef __cplusplus } -- Gitee From d29f359ec804099a2fd2d00ca217d4cc596bbf85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Thu, 13 Mar 2025 20:14:59 +0800 Subject: [PATCH 4/7] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- arkui/window_manager/oh_window.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h index e5568309d..da8b99876 100644 --- a/arkui/window_manager/oh_window.h +++ b/arkui/window_manager/oh_window.h @@ -257,7 +257,6 @@ int32_t OH_WindowManager_Snapshot(int32_t windowId, OH_PixelmapNative* pixelMap) * {@link OK} the function call is successful, return pixel map ptr in pixelMap. * {@link WINDOW_MANAGER_ERRORCODE_INVALID_PARAM} parameter error. * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported. - * {@link WINDOW_MANAGER_ERRORCODE_STATE_ABNORMAL} this window state is abnormal. * {@link WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL} the window manager service works abnormally. * @since 17 */ -- Gitee From a573d273db9c1a732a84f97009f35eb12ee22d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Thu, 13 Mar 2025 20:15:19 +0800 Subject: [PATCH 5/7] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- arkui/window_manager/oh_window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h index da8b99876..89fe6fa76 100644 --- a/arkui/window_manager/oh_window.h +++ b/arkui/window_manager/oh_window.h @@ -261,7 +261,7 @@ int32_t OH_WindowManager_Snapshot(int32_t windowId, OH_PixelmapNative* pixelMap) * @since 17 */ int32_t OH_WindowManager_GetAllWindowLayoutInfo(int64_t displayId, - WindowManager_Rect** windowLayoutInfo, size_t* windowLayoutInfoSize); + WindowManager_Rect** windowLayoutInfoList, size_t* windowLayoutInfoSize); #ifdef __cplusplus } -- Gitee From 5e977900050e7b984f65ae87f74489cb424e60a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Fri, 14 Mar 2025 15:08:51 +0800 Subject: [PATCH 6/7] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- arkui/window_manager/oh_window.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h index 89fe6fa76..835f0b0b3 100644 --- a/arkui/window_manager/oh_window.h +++ b/arkui/window_manager/oh_window.h @@ -252,7 +252,8 @@ int32_t OH_WindowManager_Snapshot(int32_t windowId, OH_PixelmapNative* pixelMap) * * @param display IdIndicate the id of display. * @param windowLayoutInfo Pointer to the layout information of the visible windows on the specified screen. - * @param windowLayoutInfoSize Pointer to the size of the array of layout information of the visible windows on the specified screen. + * @param windowLayoutInfoSize Pointer to the size of the array of layout information of the visible windows on the + specified screen. * @return Returns the result code. * {@link OK} the function call is successful, return pixel map ptr in pixelMap. * {@link WINDOW_MANAGER_ERRORCODE_INVALID_PARAM} parameter error. @@ -263,6 +264,19 @@ int32_t OH_WindowManager_Snapshot(int32_t windowId, OH_PixelmapNative* pixelMap) int32_t OH_WindowManager_GetAllWindowLayoutInfo(int64_t displayId, WindowManager_Rect** windowLayoutInfoList, size_t* windowLayoutInfoSize); +/** + * @brief Release the memory of window layout info list. + * + * @param windowLayoutInfo Pointer to the layout information of the visible windows on the specified screen. + * @return Returns the result code. + * {@link OK} the function call is successful, return pixel map ptr in pixelMap. + * {@link WINDOW_MANAGER_ERRORCODE_INVALID_PARAM} parameter error. + * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported. + * {@link WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL} the window manager service works abnormally. + * @since 17 + */ +void OH_WindowManager_ReleaseAllWindowLayoutInfo(WindowManager_Rect* windowLayoutInfoList); + #ifdef __cplusplus } #endif -- Gitee From 294365f091e42f59292bf5925d32332cb2c1576c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Fri, 14 Mar 2025 15:18:00 +0800 Subject: [PATCH 7/7] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- arkui/window_manager/oh_window.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h index 835f0b0b3..26e5be8e2 100644 --- a/arkui/window_manager/oh_window.h +++ b/arkui/window_manager/oh_window.h @@ -255,27 +255,22 @@ int32_t OH_WindowManager_Snapshot(int32_t windowId, OH_PixelmapNative* pixelMap) * @param windowLayoutInfoSize Pointer to the size of the array of layout information of the visible windows on the specified screen. * @return Returns the result code. - * {@link OK} the function call is successful, return pixel map ptr in pixelMap. + * {@link OK} the function call is successful, return Window layout info list. * {@link WINDOW_MANAGER_ERRORCODE_INVALID_PARAM} parameter error. * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported. * {@link WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL} the window manager service works abnormally. * @since 17 */ -int32_t OH_WindowManager_GetAllWindowLayoutInfo(int64_t displayId, +int32_t OH_WindowManager_GetAllWindowLayoutInfoList(int64_t displayId, WindowManager_Rect** windowLayoutInfoList, size_t* windowLayoutInfoSize); /** * @brief Release the memory of window layout info list. * * @param windowLayoutInfo Pointer to the layout information of the visible windows on the specified screen. - * @return Returns the result code. - * {@link OK} the function call is successful, return pixel map ptr in pixelMap. - * {@link WINDOW_MANAGER_ERRORCODE_INVALID_PARAM} parameter error. - * {@link WINDOW_MANAGER_ERRORCODE_DEVICE_NOT_SUPPORTED} capability not supported. - * {@link WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL} the window manager service works abnormally. * @since 17 */ -void OH_WindowManager_ReleaseAllWindowLayoutInfo(WindowManager_Rect* windowLayoutInfoList); +void OH_WindowManager_ReleaseAllWindowLayoutInfoList(WindowManager_Rect* windowLayoutInfoList); #ifdef __cplusplus } -- Gitee