Skip to content

Class ProgressBar

A horizontal bar filled to a value from 0 to 1, drawn to an eighth of a cell.

Declaration
public sealed class ProgressBar : Element

Inheritance: System.Object -> DarkEffekt.Terminal.UI.Element

Declaration
public float Value { get; set; }

Colors along the bar’s length, such as green through yellow to red. With none, the bar is the interface’s accent color.

Declaration
public ColorRamp Ramp { get; set; }

The size this element wants, within the room given.

Declaration
protected override CellSize MeasureCore(CellSize available)

DarkEffekt.Terminal.UI.CellSize

Type Name
DarkEffekt.Terminal.UI.CellSize available
Declaration
protected override void RenderCore(CellCanvas canvas)
Type Name
DarkEffekt.Terminal.UI.CellCanvas canvas