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
blockBlockBuilder
Returns
Draw(Buffer, Rect)
Draw the gauge.
public void Draw(Buffer buf, Rect area)
Parameters
EmptyStyle(Style)
A style patched over the theme's empty style.
public GaugeBuilder EmptyStyle(Style style)
Parameters
styleStyle
Returns
FilledStyle(Style)
A style patched over the theme's filled style.
public GaugeBuilder FilledStyle(Style style)
Parameters
styleStyle
Returns
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
labelLine
Returns
Ratio(double)
How full the gauge is, from 0 to 1. Values outside are clamped; NaN is 0.
public GaugeBuilder Ratio(double ratio)
Parameters
ratiodouble