From 3f68b0820ce8a53ef8062067a399aee0b1498897 Mon Sep 17 00:00:00 2001 From: wanjining Date: Tue, 30 Jul 2024 16:06:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9E=9A=E4=B8=BE=E5=80=BC?= =?UTF-8?q?=E4=B8=8Erom=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wanjining --- arkui/ace_engine/native/native_node.h | 52 ++++++++++++++------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index c6028a28799..587bfc79018 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -5736,6 +5736,33 @@ typedef enum { */ NODE_TEXT_INPUT_ON_CONTENT_SIZE_CHANGE, + /** + * @brief Defines the event triggered when matching with the regular expression specified by + * NODE_TEXT_INPUT_INPUT_FILTER fails. + * + \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_StringAsyncEvent}. \n + * {@link ArkUI_StringAsyncEvent} contains one parameter:\n + * ArkUI_StringAsyncEvent.pStr: content that is filtered out when regular expression matching fails. \n + * + */ + NODE_TEXT_INPUT_ON_INPUT_FILTER_ERROR, + + /** + * @brief This callback is triggered when the text content is scrolled. + * + \n + * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is + * {@link ArkUI_NodeComponentEvent}. \n + * {@link ArkUI_NodeComponentEvent} contains two parameters:\n + * ArkUI_NodeComponentEvent.data[0].i32: Indicates the horizontal offset of the text in the content area. \n + * ArkUI_NodeComponentEvent.data[1].i32: Indicates the vertical coordinate offset of \n + * the text in the content area. \n + * + */ + NODE_TEXT_INPUT_ON_CONTENT_SCROLL, + /** * @brief Defines the event triggered when text is about to be entered. * @@ -5790,31 +5817,6 @@ typedef enum { */ NODE_TEXT_INPUT_ON_DID_DELETE = 7012, - /** - * @brief Defines the event triggered when matching with the regular expression specified by - * NODE_TEXT_INPUT_INPUT_FILTER fails. - * - \n - * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is - * {@link ArkUI_StringAsyncEvent}. \n - * {@link ArkUI_StringAsyncEvent} contains one parameter:\n - * ArkUI_StringAsyncEvent.pStr: content that is filtered out when regular expression matching fails. \n - * - */ - NODE_TEXT_INPUT_ON_INPUT_FILTER_ERROR, - /** - * @brief This callback is triggered when the text content is scrolled. - * - \n - * When the event callback occurs, the union type in the {@link ArkUI_NodeEvent} object is - * {@link ArkUI_NodeComponentEvent}. \n - * {@link ArkUI_NodeComponentEvent} contains two parameters:\n - * ArkUI_NodeComponentEvent.data[0].i32: Indicates the horizontal offset of the text in the content area. \n - * ArkUI_NodeComponentEvent.data[1].i32: Indicates the vertical coordinate offset of \n - * the text in the content area. \n - * - */ - NODE_TEXT_INPUT_ON_CONTENT_SCROLL, /** * @brief Defines the event triggered when the input in the text box changes. * -- Gitee