Table of Contents

Class CheckboxBuilder

Namespace
MiniTui
Assembly
MiniTui.dll

A checkbox with a label: [✓] Label.

public sealed class CheckboxBuilder
Inheritance
CheckboxBuilder
Inherited Members

Methods

Checked(bool)

Whether the box is checked.

public CheckboxBuilder Checked(bool isChecked = true)

Parameters

isChecked bool

Returns

CheckboxBuilder

Draw(Buffer, Rect)

Draw the checkbox on the first row of area.

public void Draw(Buffer buf, Rect area)

Parameters

buf Buffer
area Rect

Focused(bool)

Use the focused style for the brackets.

public CheckboxBuilder Focused(bool focused = true)

Parameters

focused bool

Returns

CheckboxBuilder

Hover(Vec2?)

The pointer, usually Hover. Hover is patched over the checkbox, when it's on it (1.x spec §17.6).

public CheckboxBuilder Hover(Vec2? position)

Parameters

position Vec2?

Returns

CheckboxBuilder

Label(string)

The label.

public CheckboxBuilder Label(string label)

Parameters

label string

Returns

CheckboxBuilder

Style(Style)

A style patched over the theme's text style for the label.

public CheckboxBuilder Style(Style style)

Parameters

style Style

Returns

CheckboxBuilder