%PDF- %PDF-
| Direktori : /vendor/psy/psysh/src/Readline/Interactive/Renderer/ |
| Current File : //vendor/psy/psysh/src/Readline/Interactive/Renderer/Area.php |
<?php
/*
* This file is part of Psy Shell.
*
* (c) 2012-2026 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Psy\Readline\Interactive\Renderer;
/**
* A rectangular region a Widget may draw into.
*
* Width is in terminal cells; height is the wrapped-row budget already
* computed by the renderer (typically via OverlayViewport).
*/
class Area
{
private int $width;
private int $height;
public function __construct(int $width, int $height)
{
$this->width = $width;
$this->height = $height;
}
public function getWidth(): int
{
return $this->width;
}
public function getHeight(): int
{
return $this->height;
}
}