diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 033cbf56805daf65199a9f220499b91c9b74359a..889c225d1689f748e2ce603e9a056c5b7b7d94f4 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -2250,6 +2250,20 @@ typedef enum { */ NODE_BUTTON_LABEL = MAX_NODE_SCOPE_NUM * ARKUI_NODE_BUTTON, + /** + * @brief Sets the button type. 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: button type. The parameter type is {@link ArkUI_ButtonType}. + * The default value is ARKUI_BUTTON_TYPE_CAPSULE. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: button type. The parameter type is {@link ArkUI_ButtonType}. + * The default value is ARKUI_BUTTON_TYPE_CAPSULE. \n + * + */ + NODE_BUTTON_TYPE, + /** * @brief Defines the current value of the progress indicator. * This attribute can be set, reset, and obtained as required through APIs. @@ -3067,6 +3081,21 @@ typedef enum { */ NODE_SLIDER_STYLE, + /** + * @brief Sets the track thickness of the slider. + * 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].f32: track thickness of the slider, in vp. The default value is 4.0 vp when NODE_SLIDER_STYLE + * is set to ARKUI_SLIDER_STYLE_OUT_SET and 20.0 vp when NODE_SLIDER_STYLE is set to + * ARKUI_SLIDER_STYLE_IN_SET. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].f32: track thickness of the slider, in vp. \n + * + */ + NODE_SLIDER_TRACK_THICKNESS, + /** * @brief Defines the alignment mode of the child components in the container. 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 f9038b369ee7f11944078096fa65b4cd2fb75d06..c1409505499cd9ec21b25cf05ab6ef83a47d2802 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -1446,6 +1446,20 @@ typedef enum { ARKUI_LENGTH_METRIC_UNIT_FP } ArkUI_LengthMetricUnit; +/** + * @brief Enumerates the button types. + * + * @since 12 + */ +typedef enum { + /** Normal button (without rounded corners by default). */ + ARKUI_BUTTON_TYPE_NORMAL = 0, + /** Capsule-type button (the round corner is half of the height by default). */ + ARKUI_BUTTON_TYPE_CAPSULE, + /** Circle button. */ + ARKUI_BUTTON_TYPE_CIRCLE, +} ArkUI_ButtonType; + /** * @brief Creates a size constraint. *