Table of Contents

Class GaugeBuilder

Namespace
MiniTui
Assembly
MiniTui.dll

A progress bar with eighth-cell precision and a centered label.

public sealed class GaugeBuilder
Inheritance
GaugeBuilder
Inherited Members

Methods

Block(BlockBuilder)

Draw a block around the gauge.

public GaugeBuilder Block(BlockBuilder block)

Parameters

block BlockBuilder

Returns

GaugeBuilder

Draw(Buffer, Rect)

Draw the gauge.

public void Draw(Buffer buf, Rect area)

Parameters

buf Buffer
area Rect

EmptyStyle(Style)

A style patched over the theme's empty style.

public GaugeBuilder EmptyStyle(Style style)

Parameters

style Style

Returns

GaugeBuilder

FilledStyle(Style)

A style patched over the theme's filled style.

public GaugeBuilder FilledStyle(Style style)

Parameters

style Style

Returns

GaugeBuilder

Label(Line?)

The label drawn in the middle. Null shows the percentage (the default); an empty line shows none.

public GaugeBuilder Label(Line? label)

Parameters

label Line

Returns

GaugeBuilder

Ratio(double)

How full the gauge is, from 0 to 1. Values outside are clamped; NaN is 0.

public GaugeBuilder Ratio(double ratio)

Parameters

ratio double

Returns

GaugeBuilder