Module druid::text[][src]

Expand description

Editing and displaying text.

Structs

A collection of spans of attributes of various kinds.

Adds Attributes to the text.

Editable text state.

A collection of attributes that describe a font.

A reference to a font family.

A font weight, represented as a value in the range 1..=1000.

Metrics describing the layout text.

A clickable range of text with an associated Command.

A naive Formatter for types that implement FromStr.

Text with optional style spans.

A builder for creating RichText objects.

A range of selected text, or a caret.

A cursor type that implements EditableTextCursor for String

A widget that accepts text input.

A component for displaying text on screen.

The result of a Formatter attempting to validate some partial input.

An error returned by a Formatter when it cannot parse input.

Enums

Distinguishes between two visually distinct locations with the same byte index.

Attributes that can be applied to text.

Indicates a horizontal direction in the text.

A font style, which may be italic or regular.

An event representing an application-initiated change in InputHandler state.

Indicates a movement that transforms a particular text position in a document.

A special text editing command sent from the platform to the application.

The alignment of text in a TextLayout.

Indicates a vertical movement in a text document.

Indicates a horizontal direction for writing text.

Traits

An EditableText trait.

A cursor with convenience functions for moving through EditableText.

A trait for types that create, interpret, and validate textual representations of values.

A trait for input handlers registered by widgets.

A lock on a text field that allows the platform to retrieve state and make edits.

A type that represents text that can be displayed.

Functions

Compute the result of a Movement on a Selection.

Calculate resulting offset for a backwards delete.

Type Definitions

A reference counted string slice.