TextWrap

Immutable wrapping policy shared by displayed multiline text and editable text areas.

Wrapping changes presentation only and never inserts characters into caller-owned text. Breaks never split a Unicode scalar; grapheme-cluster navigation and layout are not implied. Values own no runtime resources and may be shared across threads.

Entries

Link copied to clipboard

Uses only explicit line separators and leaves horizontal overflow to the enclosing layout policy.

Link copied to clipboard

Prefers breakable whitespace boundaries and splits an overlong segment at Unicode scalar boundaries. NBSP, figure space, and narrow NBSP are not preferred boundaries; an overlong unbroken segment still uses scalar fallback. This intentionally limited policy does not implement a language-specific line-breaking engine.

Link copied to clipboard

Wraps at Unicode scalar boundaries without searching for whitespace.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): TextWrap

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.