diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 2d11ef58871b507b1b7d6f70869b37ed98ec5323..cf40d71802ce550830c2b1dff5ca84f5817acb14 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -1933,6 +1933,16 @@ typedef enum { */ NODE_TEXT_SELECTED_BACKGROUND_COLOR, + /** + * @brief Defines the paragraph of the text. + * This attribute can be set, reset as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .object: ArkUI_TextParagraph \n + * + */ + NODE_TEXT_CONTENT_WITH_PARAGRAPH, + /** * @brief Defines the text content attribute, which 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 71a268f5efec8b46bebb91d323d7629739860823..3ea34de2da5940800ca50fb32dc8501dede7c5b1 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -1770,6 +1770,18 @@ typedef enum { ARKUI_SWIPER_INDICATOR_TYPE_DIGIT, } ArkUI_SwiperIndicatorType; + +struct OH_Drawing_Typography; +/** + * @brief Describes the typography of a text component. + * + * @since 12 + */ +typedef struct { + /** typography instance, which is created by drawing native api*/ + OH_Drawing_Typography* typography; +} ArkUI_TextTypography; + /** * @brief Creates a size constraint. *