diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index d9516d4064cf8985750d97dea981b3953f6b0b3b..70f319165beddaceea59e59b256573d789734676 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 e43a92fa2e6bb1503111cdb5091bfd59e2e200d6..13d2a82dec2724f0b9264b8a0a146003f886a644 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. *