From 640b2f7f13419267b2d014dcd714196f83ad466f Mon Sep 17 00:00:00 2001 From: sd_wu Date: Thu, 23 Jan 2025 11:15:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DscreenX/Y=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sd_wu --- .../ace_engine/native/native_interface_xcomponent.h | 12 ++++++------ arkui/ace_engine/native/native_node.h | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/arkui/ace_engine/native/native_interface_xcomponent.h b/arkui/ace_engine/native/native_interface_xcomponent.h index c15ecf20c..460124a7e 100644 --- a/arkui/ace_engine/native/native_interface_xcomponent.h +++ b/arkui/ace_engine/native/native_interface_xcomponent.h @@ -240,9 +240,9 @@ typedef struct { typedef struct { /** Unique identifier of a finger. */ int32_t id; - /** X coordinate of the touch point relative to the left edge of the screen. */ + /** X coordinate of the touch point relative to the left edge of the window. */ float screenX; - /** Y coordinate of the touch point relative to the upper edge of the screen. */ + /** Y coordinate of the touch point relative to the upper edge of the window. */ float screenY; /** X coordinate of the touch point relative to the left edge of the element to touch. */ float x; @@ -264,9 +264,9 @@ typedef struct { typedef struct { /** Unique identifier of a finger. */ int32_t id; - /** X coordinate of the touch point relative to the left edge of the screen. */ + /** X coordinate of the touch point relative to the left edge of the window. */ float screenX; - /** Y coordinate of the touch point relative to the upper edge of the screen. */ + /** Y coordinate of the touch point relative to the upper edge of the window. */ float screenY; /** X coordinate of the touch point relative to the left edge of the element to touch. */ float x; @@ -876,7 +876,7 @@ int32_t OH_NativeXComponent_RegisterKeyEventCallbackWithResult( * @param callback Indicates the pointer to a image analyzer status callback function. * @return Returns the status code of the execution. * {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.\n - * {@link ARKUI_ERROR_CODE_PARAM_INVALID} component is nullptr or callback is nullptr, + * {@link ARKUI_ERROR_CODE_PARAM_INVALID} node is nullptr or callback is nullptr, * or the type of node is not XComponent.\n * @since 16 */ @@ -890,7 +890,7 @@ int32_t OH_ArkUI_XComponent_StartImageAnalyzer(ArkUI_NodeHandle node, void* user * @param node Indicates the pointer to the XComponent instance created by the native API. * @return Returns the status code of the execution. * {@link ARKUI_ERROR_CODE_NO_ERROR} the execution is successful.\n - * {@link ARKUI_ERROR_CODE_PARAM_INVALID} component is nullptr or the type of node is not XComponent.\n + * {@link ARKUI_ERROR_CODE_PARAM_INVALID} node is nullptr or the type of node is not XComponent.\n * @since 16 */ int32_t OH_ArkUI_XComponent_StopImageAnalyzer(ArkUI_NodeHandle node); diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index cda063dcb..0120d0b8b 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -3696,7 +3696,6 @@ typedef enum { * .value[3].i32: The height of the surface created by XComponent, in pixels. \n * \n * Format of the return value {@link ArkUI_AttributeItem}:\n - * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n * .value[0].i32: The horizontal offset of the surface relative to XComponent, in pixels. \n * .value[1].i32: The vertical offset of the surface relative to XComponent, in pixels. \n * .value[2].i32: The width of the surface created by XComponent, in pixels. \n -- Gitee