TextLayout

sealed interface TextLayout(source)

Immutable line layout requested by a displayed text component.

Runtime measurement resolves the policy against its font metrics and the available constraints. The policy owns no text or platform resources and may be shared across threads.

Inheritors

Types

Link copied to clipboard
data class Multiline(val wrap: TextWrap = TextWrap.Word, val maxLines: Int = Int.MAX_VALUE, val overflow: TextOverflow = TextOverflow.Clip, val lineSpacing: Int = 0) : TextLayout

Displays explicit lines with optional wrapping and a bounded number of visible lines.

Link copied to clipboard
data object SingleLine : TextLayout

Preserves the existing single-line text contract, including rejection of explicit line separators.