From 655d8f5152ed0d61b308ca5a1d28874bade6b51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E8=81=AA?= Date: Fri, 5 Sep 2025 10:25:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=AB=E6=8F=8F=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵聪 --- arkui/window_manager/oh_window_event_filter.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/arkui/window_manager/oh_window_event_filter.h b/arkui/window_manager/oh_window_event_filter.h index 5d8aa0dbf03..473682f705c 100644 --- a/arkui/window_manager/oh_window_event_filter.h +++ b/arkui/window_manager/oh_window_event_filter.h @@ -67,7 +67,7 @@ WindowManager_ErrorCode OH_NativeWindowManager_RegisterKeyEventFilter(int32_t wi OH_NativeWindowManager_KeyEventFilter keyEventFilter); /** - * @brief clear callback for the window + * @brief Unregisters a function for filtering multimodal key events * * @param windowId windowId when window is created * @return Returns the status code of the execution. @@ -76,15 +76,14 @@ WindowManager_ErrorCode OH_NativeWindowManager_RegisterKeyEventFilter(int32_t wi WindowManager_ErrorCode OH_NativeWindowManager_UnregisterKeyEventFilter(int32_t windowId); /** - * @brief the callback function type when mouseEvent was filter + * @brief Defines a function for filtering multimodal mouse events * @param mouseEvent multimodal mouseEvent * @since 15 */ typedef bool (*OH_NativeWindowManager_MouseEventFilter)(Input_MouseEvent* mouseEvent); /** - * @brief Registers a filter callback for the window, the callback is called when the - * window is dispatched to the event + * @brief Registers a function for filtering multimodal mouse events * * @param windowId windowId when window is created * @param mouseEventFilter mouse event callback, called when the window is dispatched @@ -99,7 +98,7 @@ WindowManager_ErrorCode OH_NativeWindowManager_RegisterMouseEventFilter(int32_t OH_NativeWindowManager_MouseEventFilter mouseEventFilter); /** - * @brief clear callback for the window + * @brief Unregisters a function for filtering multimodal mouse events * * @param windowId windowId when window is created * @return Returns the status code of the execution. @@ -118,8 +117,7 @@ WindowManager_ErrorCode OH_NativeWindowManager_UnregisterMouseEventFilter(int32_ typedef bool (*OH_NativeWindowManager_TouchEventFilter)(Input_TouchEvent* touchEvent); /** - * @brief Registers a filter callback for the window, the callback is called when the - * window is dispatched to the event + * @brief Registers a function for filtering multimodal touch events * * @param windowId windowId when window is created * @param touchEventFilter touch event callback, called when the window is dispatched @@ -134,7 +132,7 @@ WindowManager_ErrorCode OH_NativeWindowManager_RegisterTouchEventFilter(int32_t OH_NativeWindowManager_TouchEventFilter touchEventFilter); /** - * @brief clear callback for the window + * @brief Unregisters a function for filtering multimodal touch events * * @param windowId windowId when window is created * @return Returns the status code of the execution. -- Gitee