Skip to main content

Module annotated_string

Module annotated_string 

Source
Expand description

Styled text: spans, links and string annotations.

Structs§

AnnotatedString
The basic data structure of text with multiple styles: Compose’s AnnotatedString. Its content, the text, styles, annotations and link identities, is shared with every layout and draw made from it, so a clone copies no text. The handlers of its clickable links stay with it.
Builder
A builder to construct AnnotatedString.
RangeStyle
A style applied to a range of an AnnotatedString.
RenderString
What rendering reads from an AnnotatedString: content, styles, and link identity — never the link handlers, which live UI-side only.
StringAnnotation
Mirrors Jetpack Compose’s AnnotatedString.Range<String> — a tag+value annotation covering a byte range.

Enums§

LinkAnnotation
Mirrors Jetpack Compose’s LinkAnnotation sealed class.
LinkKey
Link identity without the link behavior: what rendering may know about a LinkAnnotation. URL links keep their URL, clickable links keep their tag — the handler stays UI-side.

Type Aliases§

SpanBoundaries
Byte offsets where a string’s styles change, held inline for the few spans most text carries.