Skip to main content

Module text

Module text 

Source
Expand description

Draw and interact with text.

Modules§

highlighter
Highlight text.

Structs§

Format
The format of some Text.
Operand
The state of a widget with text, operated on by super::Operation::text.
Position
A specific position in some Text.
Rich
A bunch of Rich text.
Span
A span of text.
Style
The appearance of some text.

Enums§

Alignment
The alignment of some text.
Ellipsis
The ellipsis strategy of some 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§

Catalog
The theme catalog of a Text.
Highlighter
A type that describes how to highlight an Input with some Style.
IntoFragment
A trait for converting a value to some text Fragment.
Parser
A type capable of parsing text, producing some Output.

Functions§

base
Text with the default base color.
danger
Text conveying some negative information, like an error.
default
The default text styling; color is inherited.
draw
Draws text using the same logic as the Text widget.
layout
Computes the Size of a Text widget.
primary
Text conveying some important information, like an action.
secondary
Text conveying some secondary information, like a footnote.
success
Text conveying some positive information, like a successful event.
warning
Text conveying some mildly negative information, like a warning.

Type Aliases§

Fragment
A fragment of Text.
StyleFn
A styling function for a Text.
Text
A bunch of text.