Skip to content

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

OptionTypeDefaultWhat it does
valuedouble0.0Below zero draws the indeterminate form.
heightfloat6.0f
widthfloatkAuto
growfloat1.0f
colorTokenToken::Accent
phasefloat0.0fPhase for the indeterminate form, in turns. Feed it a clock.
namestd::string_viewWhat is progressing — "Cloning", "Uploading". A bar with no name is a percentage with nothing attached to it.

Released under the LGPL-3.0-or-later licence.