ProgressBar
progressBar · Elements
A progress bar, determinate or not.
Import
cpp
#include "gbui/widgets/progress.hpp"Example
Nothing is downloaded until you press it.
cpp
NodeId progressBar(Ui& ui, const ProgressOptions& options = {});Not an input, but it belongs with them: the same track, the same tokens.
API
ProgressOptions
| Option | Type | Default | What it does |
|---|---|---|---|
value | double | 0.0 | Below zero draws the indeterminate form. |
height | float | 6.0f | |
width | float | kAuto | |
grow | float | 1.0f | |
color | Token | Token::Accent | |
phase | float | 0.0f | Phase for the indeterminate form, in turns. Feed it a clock. |
name | std::string_view | What is progressing — "Cloning", "Uploading". A bar with no name is a percentage with nothing attached to it. |