Skip to main content

Module text_editing

Module text_editing 

Source
Expand description

Canonical, platform-neutral text editing values and edit transactions.

All offsets in this module are validated UTF-8 byte offsets. Platform adapters must use the named UTF-16 conversion functions rather than mixing offset units at their boundaries.

Structs§

TextEditPipeline
TextEditResult
TextEditingValue
The sole value required to synchronize an editable text session.
TextOffsetError
TextPosition
A validated UTF-8 byte position in a particular text value.
TextRange
A validated half-open text range.
TextSelection
A directional selection. base is the fixed anchor and extent is the caret.

Enums§

TextAffinity
Direction used to resolve an ambiguous position at a soft line break.
TextEditBoundary
TextEditCommand
A complete proposed edit. Every mutation source is normalized to this model.
TextEditDirection
TextEditPhase
TextEditSource
TextValuePhase
Lifecycle meaning of a complete value supplied by a platform adapter.

Traits§

CompleteTextInputFormatter
Application formatter extension point. Formatters receive complete values, including selection and composing state, and must return another valid value.

Type Aliases§

SharedTextInputFormatter