GGUI::ProgressProps struct

Properties of ui.Progress.

Public variables

GGSize Width
Fit (unset): its style's.
GGSize Height
Fit (unset): its style's.
float Value
fill fraction 0..1, when not bound
std::string_view Class
its style classes
GGFillToward Toward
bool bRadial
Radial: a ring (or, with no inner gap, a pie) filling clockwise from Start (degrees from the top) through Sweep degrees. Its thickness is the style's border width; 0 fills to the centre.
float Start
see bRadial
float Sweep
see bRadial
int Segments
pips with gaps between them; 0: one bar
ImageID FillImage
bool bTrailing
A second fill that follows the value down after TrailDelay seconds, over TrailTime seconds: how much was just lost.
float TrailDelay
see bTrailing
float TrailTime
see bTrailing

Variable documentation

GGFillToward GGUI::ProgressProps::Toward

which way a bar fills

ImageID GGUI::ProgressProps::FillImage

the fill drawn with this image, cut to the value

bool GGUI::ProgressProps::bTrailing

A second fill that follows the value down after TrailDelay seconds, over TrailTime seconds: how much was just lost.

Drawn in the accent colour, faded. Both times can be bound (GGProperty::TrailDelay, TrailTime).