progressBarContextLayout

fun <T> progressBarContextLayout(spacing: Int = 2, alignColumns: Boolean = true, textFps: Int = TEXT_FPS, animationFps: Int = ANIMATION_FPS, align: TextAlign = TextAlign.RIGHT, verticalAlign: VerticalAlign = VerticalAlign.BOTTOM, init: ProgressLayoutScope<T>.() -> Unit): ProgressBarDefinition<T>

Create a progress bar layout with that has a context of type T.

If you don't need a context, you can use progressBarLayout instead. If you need a builder rather than a DSL, you can use ProgressLayoutBuilder.

Parameters

spacing

The number of spaces between cells in this layout.

alignColumns

How to align the columns of the progress bar when multiple tasks are present. If true, the cells in each column will have the same width. Widths are only aligned for contiguous cells, so if you have a row with alignColumns=false between rows with alignColumns=true, none of the three will be aligned.

textFps

The default framerate for text based cells like timeRemaining

animationFps

The default framerate for animation cells like progressBar

align

The default horizontal alignment for cells

verticalAlign

The default vertical alignment for cells

init

A lambda that adds cells to the layout