TextAreaViewport

sealed interface TextAreaViewport(source)

Immutable outer viewport requested by a multiline text editor.

The active runtime resolves nine-pixel logical line boxes, additional line spacing, and frame insets while preserving the requested width. Values own no runtime resources and may be shared across threads.

Inheritors

Types

Link copied to clipboard
data class Lines(val width: Int, val lines: Int) : TextAreaViewport

Derives the outer height from a number of visible text rows, line spacing, and runtime frame insets.

Link copied to clipboard
data class Size(val size: IntSize) : TextAreaViewport

Uses an exact outer logical size independent of the requested row count or glyph ink height.