Viewport

data class Viewport(val from: Int, val to: Int)

The visible document range.

Constructors

Link copied to clipboard
constructor(from: Int, to: Int)

Properties

Link copied to clipboard
val from: Int
Link copied to clipboard
val to: Int

Functions

Link copied to clipboard
operator fun contains(pos: Int): Boolean

True when pos falls inside this viewport.