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
isCheckedbool
Returns
Draw(Buffer, Rect)
Draw the checkbox on the first row of area.
public void Draw(Buffer buf, Rect area)
Parameters
Focused(bool)
Use the focused style for the brackets.
public CheckboxBuilder Focused(bool focused = true)
Parameters
focusedbool
Returns
Hover(Vec2?)
public CheckboxBuilder Hover(Vec2? position)
Parameters
positionVec2?
Returns
Label(string)
The label.
public CheckboxBuilder Label(string label)
Parameters
labelstring
Returns
Style(Style)
A style patched over the theme's text style for the label.
public CheckboxBuilder Style(Style style)
Parameters
styleStyle