progressBarLayout
fun progressBarLayout(spacing: Int = 2, alignColumns: Boolean = true, textFps: Int = TEXT_FPS, animationFps: Int = ANIMATION_FPS, align: TextAlign = TextAlign.RIGHT, verticalAlign: VerticalAlign = VerticalAlign.BOTTOM, init: ProgressLayoutScope<Unit>.() -> Unit): ProgressBarDefinition<Unit>
Create a progress bar layout that doesn't use a context.
If you need a context, you can use progressBarContextLayout instead.
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. Width 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