From af096f235b3884a589e2f151d1fdf7f34aa936fe Mon Sep 17 00:00:00 2001 From: liuyongkai2 Date: Sat, 6 Sep 2025 12:21:17 +0800 Subject: [PATCH] =?UTF-8?q?textArea=E6=94=AF=E6=8C=81CAPI=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=98=AF=E5=90=A6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuyongkai2 --- arkui/ace_engine/native/native_node.h | 16 ++++++++++++++++ arkui/ace_engine/native/native_type.h | 14 ++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index d9516d4064c..70f319165be 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -3960,6 +3960,22 @@ typedef enum { */ NODE_TEXT_AREA_LINE_HEIGHT = 8031, + /** + * @brief Define bar state of the text area. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: bar state of the text area, specified using the {@link ArkUI_BarState} + * enum. The default value is ARKUI_BAR_STATE_AUTO. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: bar state of the text area, specified using the {@link ArkUI_BarState} + * enum. \n + * + * @since 21 + */ + NODE_TEXT_AREA_BAR_STATE = 8032, + /** * @brief Defines the button text content. This attribute can be set, reset, and obtained as required through APIs. * diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index e43a92fa2e6..13d2a82dec2 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -696,6 +696,20 @@ typedef enum { ARKUI_EDGE_EFFECT_NONE, } ArkUI_EdgeEffect; +/** + * @brief Enumerates the status of the scroll bar. + * + * @since 21 + */ +typedef enum { + /** Not displayed. */ + ARKUI_BAR_STATE_OFF = 0, + /** On-demand display. */ + ARKUI_BAR_STATE_AUTO = 1, + /** Resident display. */ + ARKUI_BAR_STATE_ON = 2, +} ArkUI_BarState; + /** * @brief Enumerates the edges for which the effect takes effect when the boundary of the scrollable content is reached. * -- Gitee