Module styled_string

Module styled_string 

Source
Available on crate feature api-12 only.

Re-exports§

pub use super::ArkUI_StyledString;

Structs§

ArkUI_StyledString
Defines formatted string data objects supported by the text component.
OH_Drawing_FontCollection
Defines an OH_Drawing_FontCollection, which is used to load fonts.
OH_Drawing_PlaceholderSpan
Defines the placeholder span.
OH_Drawing_TextStyle
Defines an OH_Drawing_TextStyle, which is used to manage text colors and decorations.
OH_Drawing_Typography
Defines an OH_Drawing_Typography, which is used to manage the typography layout and display.
OH_Drawing_TypographyStyle
Defines an OH_Drawing_TypographyStyle, which is used to manage the typography style, such as the text direction.

Functions§

OH_ArkUI_ConvertToHtmlapi-14
Converts styled string information into HTML.
OH_ArkUI_MarshallStyledStringDescriptorapi-14
Serializes the styled string information into a byte array.
OH_ArkUI_StyledString_AddPlaceholder
Set the placeholder.
OH_ArkUI_StyledString_AddText
Sets the corresponding text content based on the current format string style.
OH_ArkUI_StyledString_Create
Creates a pointer to the ArkUI_StyledString object.
OH_ArkUI_StyledString_CreateTypography
Creates a pointer to an OH_Drawing_Typography object based on a format string object for advanced text estimation and typography.
OH_ArkUI_StyledString_Descriptor_Createapi-14
Creates an ArkUI_StyledString_Descriptor object.
OH_ArkUI_StyledString_Descriptor_Destroyapi-14
Destroys an ArkUI_StyledString_Descriptor object and reclaims the memory occupied by the object.
OH_ArkUI_StyledString_Destroy
Free the memory occupied by the ArkUI_StyledString object.
OH_ArkUI_StyledString_PopTextStyle
Removes the top style from the stack in the current format string object.
OH_ArkUI_StyledString_PushTextStyle
Sets the new layout style to the top of the current format string style stack.
OH_ArkUI_UnmarshallStyledStringDescriptorapi-14
Deserializes a byte array containing styled string information into a styled string.