ViewState

data class ViewState(val state: EditorState, val viewport: Viewport, val visibleRanges: List<Pair<Int, Int>> = emptyList(), val lineGaps: List<LineGap> = emptyList(), val scrollTarget: ScrollTarget? = null)

Snapshot of the view's layout state. Created fresh for each recomposition.

Constructors

Link copied to clipboard
constructor(state: EditorState, viewport: Viewport, visibleRanges: List<Pair<Int, Int>> = emptyList(), lineGaps: List<LineGap> = emptyList(), scrollTarget: ScrollTarget? = null)

Properties

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