Fixed

Fixed #

PhpTui\Tui\Display\Viewport\Fixed

Creates a fixed location viewport at the given Area

Example #

Show code
<?php

declare(strict_types=1);

use PhpTui\Tui\DisplayBuilder;
use PhpTui\Tui\Extension\Core\Widget\BlockWidget;
use PhpTui\Tui\Widget\Borders;

require 'vendor/autoload.php';

$display = DisplayBuilder::default()->fixed(2, 2, 4, 4)->build();
$display->draw(BlockWidget::default()->borders(Borders::ALL));

Parameters #

Configure the viewport using the builder methods named as follows:

NameTypeDescription
areaPhpTui\Tui\Display\AreaArea to occupy