Module druid::text

source ·
Expand description

Editing and displaying text.

Structs

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

Type Definitions

  • A reference counted string slice.