From e8a3baa09053a3a2b4fc3901e4a573ed447a0865 Mon Sep 17 00:00:00 2001 From: huqingyun Date: Thu, 4 Jul 2024 10:09:16 +0000 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E6=94=B9=E9=94=99=E8=AF=AF=E7=A0=81?= =?UTF-8?q?=E5=92=8C=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huqingyun Change-Id: I0ae0d03f11603f03307bc419c168e7170ad18d20 --- arkui/ace_engine/native/native_node.h | 14 +++++++------- arkui/ace_engine/native/ui_input_event.h | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index d2a5841f6..7b5c89451 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -7071,7 +7071,7 @@ typedef struct { * @param height Indicates the height. * @return Returns the error code. * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. */ int32_t (*setMeasuredSize)(ArkUI_NodeHandle node, int32_t width, int32_t height); @@ -7083,7 +7083,7 @@ typedef struct { * @param positionY Indicates the Y coordinate. * @return Returns the error code. * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. */ int32_t (*setLayoutPosition)(ArkUI_NodeHandle node, int32_t positionX, int32_t positionY); @@ -7110,7 +7110,7 @@ typedef struct { * @param Constraint Indicates the size constraint. * @return Returns the error code. * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. */ int32_t (*measureNode)(ArkUI_NodeHandle node, ArkUI_LayoutConstraint* Constraint); @@ -7124,7 +7124,7 @@ typedef struct { * @param positionY Indicates the Y coordinate. * @return Returns the error code. * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. */ int32_t (*layoutNode)(ArkUI_NodeHandle node, int32_t positionX, int32_t positionY); @@ -7143,7 +7143,7 @@ typedef struct { * @param eventReceiver Indicates the component event callback function to add. * @return Returns the error code. * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. */ int32_t (*addNodeEventReceiver)(ArkUI_NodeHandle node, void (*eventReceiver)(ArkUI_NodeEvent* event)); @@ -7154,7 +7154,7 @@ typedef struct { * @param eventReceiver Indicates the component event callback function to remove. * @return Returns the error code. * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. */ int32_t (*removeNodeEventReceiver)(ArkUI_NodeHandle node, void (*eventReceiver)(ArkUI_NodeEvent* event)); @@ -7196,7 +7196,7 @@ typedef struct { * @param userData Indicates the custom data to be saved. * @return Returns the error code. * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs.. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. */ int32_t (*setUserData)(ArkUI_NodeHandle node, void* userData); diff --git a/arkui/ace_engine/native/ui_input_event.h b/arkui/ace_engine/native/ui_input_event.h index 05af248bb..c565badd3 100644 --- a/arkui/ace_engine/native/ui_input_event.h +++ b/arkui/ace_engine/native/ui_input_event.h @@ -692,9 +692,9 @@ int32_t OH_ArkUI_MouseEvent_GetMouseAction(const ArkUI_UIInputEvent* event); * * @param event Indicates the pointer to the current UI input event. * @param stopPropagation Indicates whether the event is prevented from bubbling. - * @return Returns the status code of the execution. If 0 is returned, the setting is successful. - * If 401 is returned, the execution fails. - * The possible cause of the failure is that the event parameter is abnormal, such as a null pointer. + * @return Returns the error code. + * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. * @since 12 */ int32_t OH_ArkUI_PointerEvent_SetStopPropagation(const ArkUI_UIInputEvent* event, bool stopPropagation); -- Gitee