Module text

Expand description

Draw and interact with text.

Modules§

editor
Edit text.
highlighter
Highlight text.
paragraph
Draw paragraphs.

Structs§

Highlight
A text highlight.
Span
A span of text.
Text
A paragraph.

Enums§

Affinity
Cursor affinity for BiDi text. At the boundary between runs of different directions, the same byte index can map to different visual positions.
Alignment
The alignment of some text.
Difference
The difference detected in some text.
Ellipsize
The ellipsizing strategy of some text.
EllipsizeHeightLimit
The ellipsizing strategy of some text when it exceeds a certain height.
Hit
The result of hit testing on text.
LineHeight
The height of a line of text in a paragraph.
Shaping
The shaping strategy of some text.
Wrapping
The wrapping strategy of some text.

Traits§

Editor
A component that can be used by widgets to edit multi-line text.
Highlighter
A type capable of highlighting text.
IntoFragment
A trait for converting a value to some text Fragment.
Paragraph
A text paragraph.
Renderer
A renderer capable of measuring and drawing Text.

Type Aliases§

Fragment
A fragment of Text.