Table of Contents

Class SplitBuilder

Namespace
MiniTui
Assembly
MiniTui.dll

Two panes with a divider between them (1.x spec §14.3), from a SplitState. Draw(Buffer, Rect) draws only the divider and returns the panes for the app to draw into.

public sealed class SplitBuilder
Inheritance
SplitBuilder
Inherited Members

Examples

var (left, right) = Widget.Split(_split).Draw(buf, area);
ctx.Render(_files, buf, left);
ctx.Render(_preview, buf, right);

Methods

Draw(Buffer, Rect)

Draw the divider and return the two panes.

public (Rect First, Rect Second) Draw(Buffer buf, Rect area)

Parameters

buf Buffer
area Rect

Returns

(Rect Top, Rect Bottom)

Focused(bool)

Draw the divider in the focused border style, as while it's dragged.

public SplitBuilder Focused(bool focused = true)

Parameters

focused bool

Returns

SplitBuilder

Style(Style)

A style patched over the theme's border style for the divider.

public SplitBuilder Style(Style style)

Parameters

style Style

Returns

SplitBuilder