Skip to content
docsv0.3.0

ContainerRenderer

Structural node types (`app`, `split`, `stack`, `container`) that own layout but paint nothing themselves — their frame is empty on purpose, because the layout engine positions the children that do the painting.

ContainerRenderer::supports()

public function supports(Milpa\Live\ValueObjects\Tui\TuiNode $node): bool

True for the structural node types `app`, `split`, `stack` and `container`.

Parameters

Parameters of supports()
NameTypeDescription
$nodeMilpa\Live\ValueObjects\Tui\TuiNode

ContainerRenderer::render()

public function render(Milpa\Live\ValueObjects\Tui\TuiNode $node, Milpa\Live\ValueObjects\Tui\TuiRenderContext $context): Milpa\Live\ValueObjects\Tui\TuiFrame

Returns an empty frame: this node contributes layout, not pixels.

Parameters

Parameters of render()
NameTypeDescription
$nodeMilpa\Live\ValueObjects\Tui\TuiNode
$contextMilpa\Live\ValueObjects\Tui\TuiRenderContext