Viewport

termflow.tui.widgets.LogView.Viewport
final case class Viewport(at: Coord, width: Int, height: Int)

Rectangle in absolute terminal cells the viewport occupies. Used by scrollDelta to decide whether a mouse-wheel event should drive the LogView; sized identically to the width / height / at arguments passed to LogView.apply.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def contains(col: Int, row: Int): Boolean

True if the absolute (col, row) lies within the viewport.

True if the absolute (col, row) lies within the viewport.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product