TerminalViewport class final

Alacritty SizeInfo counterpart: single authority for pixel layout and cell grid. TerminalViewportController.apply keeps engine, mirror, and PTY aligned to this tuple synchronously on each layout pass.

Annotations

Constructors

TerminalViewport({required double windowWidth, required double windowHeight, required double cellWidth, required double cellHeight, required double paddingX, required double paddingY, required int columns, required int screenLines, required double devicePixelRatio})
const

Properties

cellAreaHeight double
no setter
cellAreaWidth double
no setter
cellHeight double
final
cellRect Rect
Pixel rect containing terminal cells (for hit-testing after subtracting paddingX/paddingY from local coordinates).
no setter
cellWidth double
final
columns int
final
devicePixelRatio double
final
hashCode int
The hash code for this object.
no setteroverride
paddingBottom double
no setter
paddingRight double
no setter
paddingX double
Dynamic letterbox padding (Alacritty dynamic_padding).
final
paddingY double
final
ptyWindowSize → (int, int)
Cell grid dimensions sent on SIGWINCH (columns × screenLines).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenLines int
final
windowHeight double
final
windowWidth double
final

Methods

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

Operators

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