Table of Contents

Class ButtonBuilder

Namespace
MiniTui
Assembly
MiniTui.dll

A button with a centered label.

public sealed class ButtonBuilder
Inheritance
ButtonBuilder
Inherited Members

Methods

Draw(Buffer, Rect)

Fill area with the button.

public void Draw(Buffer buf, Rect area)

Parameters

buf Buffer
area Rect

Focused(bool)

Use the focused style.

public ButtonBuilder Focused(bool focused = true)

Parameters

focused bool

Returns

ButtonBuilder

Hover(Vec2?)

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

public ButtonBuilder Hover(Vec2? position)

Parameters

position Vec2?

Returns

ButtonBuilder

Label(string)

The label.

public ButtonBuilder Label(string label)

Parameters

label string

Returns

ButtonBuilder

Pressed(bool)

Show the button pressed (the focused style, reversed).

public ButtonBuilder Pressed(bool pressed = true)

Parameters

pressed bool

Returns

ButtonBuilder

Style(Style)

A style patched over the theme's button style.

public ButtonBuilder Style(Style style)

Parameters

style Style

Returns

ButtonBuilder