Structs§
- Annotated
String - The basic data structure of text with multiple styles.
- Builder
- A builder to construct
AnnotatedString. - Range
Style - A style applied to a range of an
AnnotatedString. - Render
String - What rendering reads from an
AnnotatedString: content, styles, and link identity — never the link handlers, which live UI-side only. - String
Annotation - Mirrors Jetpack Compose’s
AnnotatedString.Range<String>— a tag+value annotation covering a byte range.
Enums§
- Link
Annotation - Mirrors Jetpack Compose’s
LinkAnnotationsealed 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.
Functions§
- shared_
plain_ annotated_ string - Returns the shared
AnnotatedStringfor a plain, style-free string, reusing the copy made on an earlier frame when the content matches. - shared_
plain_ render_ string - The
RenderStringofshared_plain_annotated_string’s string fortext, converted once while the pool holds it, so a canvas redrawing the same characters hands the renderer the same allocation every frame.