Skip to content
docsv0.3.0

TuiFrame

A width/height-fixed grid of already-rendered text lines. Pure data -- building a normalized (padded/truncated) frame from raw text is the job of {@see \Milpa\Live\Tui\TuiFrameFactory} in the implementation layer, not this value object, so ValueObjects\Tui never has to depend on a concrete string-width helper to be constructed.

TuiFrame::__construct()

public function __construct(int $width, int $height, array $lines):

Parameters

Parameters of __construct()
NameTypeDescription
$widthint
$heightint
$linesarray<int, string>