ViewportQuery class

Parameters for resolving a terminal grid from a viewport size.

Captures everything the resolver needs: the available paint area (already with host padding subtracted), the measured cell dimensions at the current font, and any space reserved for chrome (scrollbar gutter, etc.).

Constructors

ViewportQuery({required Size available, required CellMetrics cell, EdgeInsets reserve = EdgeInsets.zero})
const

Properties

available Size
Available paint area. Hosts subtract their own padding (e.g. 36px horizontal, 8px vertical) before passing it here.
final
cell CellMetrics
Measured cell dimensions at the current font size + DPR. Sub-pixel precision; must match what the painter uses.
final
hashCode int
The hash code for this object.
no setterinherited
reserve EdgeInsets
Space reserved for chrome that lives inside the paint area but should not be occupied by cells — e.g. a scrollbar gutter. The resolver subtracts this from available before computing the cell grid.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited