Expand description
Editing and displaying text.
Structs§
- Attribute
Spans - A collection of spans of attributes of various kinds.
- Attributes
Adder - Adds Attributes to the text.
- Edit
Session - Editable text state.
- EnvUpdate
Ctx - Provides information about keys change for more fine grained invalidation
- Font
Descriptor - A collection of attributes that describe a font.
- Font
Family - A reference to a font family.
- Font
Weight - A font weight, represented as a value in the range 1..=1000.
- Layout
Metrics - Metrics describing the layout text.
- Link
- A clickable range of text with an associated
Command. - Parse
Formatter - A naive
Formatterfor types that implementFromStr. - Rich
Text - Text with optional style spans.
- Rich
Text Builder - A builder for creating
RichTextobjects. - Selection
- A range of selected text, or a caret.
- String
Cursor - A cursor type that implements EditableTextCursor for String
- Text
Component - A widget that accepts text input.
- Text
Layout - A component for displaying text on screen.
- Validation
- The result of a
Formatterattempting to validate some partial input. - Validation
Error - An error returned by a
Formatterwhen it cannot parse input.
Enums§
- Affinity
- Distinguishes between two visually distinct locations with the same byte index.
- Attribute
- Attributes that can be applied to text.
- Direction
- Indicates a horizontal direction in the text.
- Font
Style - A font style, which may be italic or regular.
- ImeInvalidation
- An event representing an application-initiated change in
InputHandlerstate. - Movement
- Indicates a movement that transforms a particular text position in a document.
- Text
Action - A special text editing command sent from the platform to the application.
- Text
Alignment - The alignment of text in a
TextLayout. - Vertical
Movement - Indicates a vertical movement in a text document.
- Writing
Direction - Indicates a horizontal direction for writing text.
Traits§
- Editable
Text - An EditableText trait.
- Editable
Text Cursor - A cursor with convenience functions for moving through EditableText.
- Formatter
- A trait for types that create, interpret, and validate textual representations of values.
- ImeHandler
Ref - A trait for input handlers registered by widgets.
- Input
Handler - A lock on a text field that allows the platform to retrieve state and make edits.
- Text
Storage - A type that represents text that can be displayed.
Functions§
- movement
- Compute the result of a
Movementon aSelection. - offset_
for_ delete_ backwards - Calculate resulting offset for a backwards delete.
Type Aliases§
- ArcStr
- A reference counted string slice.