LineLayout

data class LineLayout(val lineNumber: Int, val lineFrom: Int, val topPx: Float, val leftPx: Float, val result: TextLayoutResult)

Cached layout result for a single document line.

Parameters

lineNumber

1-based line number.

lineFrom

Document offset of the first character of this line.

topPx

Y coordinate of the top of this line in the editor.

result

Compose text-layout result for measuring cursor positions.

Constructors

Link copied to clipboard
constructor(lineNumber: Int, lineFrom: Int, topPx: Float, leftPx: Float, result: TextLayoutResult)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard