class

AProgressBar

Module
Arc
Header
#include "Arc/Widgets/AProgressBar.h"
Namespace
Arcf

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS4 px, or 2 px for the thin (splash) bar.
voidConstruct
ArcVec2ComputeDesiredSize
int32_tOnPaint
voidSetPercentPercent is painted, never measured — the bar is a fixed frame — so a new value must drop the slice without throwing away a measure that is still correct.
voidSetFillColor
voidSetBarState
EProgressBarStateGetBarState
floatGetPercent
boolCanCacheDesiredSizeA fixed bar; progress fills it rather than resizing it.
boolCanRetainPaintThe usual case is a bound percent driven off a task's progress: a getter that returns something new every frame with no write for any invalidation to observe.
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(AProgressBar) ARC_ATTR(float, Percent) ARC_ATTR(ArcColor, FillColor) ARC_ATTR(ArcColor, BackgroundColor) ARC_ATTR(float, CornerRadius) ARC_ARG(bool, Thin) ARC_WIDGET_ARGS_END() float GetBarHeight() const

4 px, or 2 px for the thin (splash) bar.

Construct

C++
void Construct(const CArguments& args)

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const override

SetPercent

C++
void SetPercent(float pct)

Percent is painted, never measured — the bar is a fixed frame — so a new value must drop the slice without throwing away a measure that is still correct.

SetFillColor

C++
void SetFillColor(const ArcColor& color)

SetBarState

C++
void SetBarState(EProgressBarState state)

GetBarState

C++
EProgressBarState GetBarState() const

GetPercent

C++
float GetPercent() const

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

A fixed bar; progress fills it rather than resizing it.

CanRetainPaint

C++
bool CanRetainPaint() const override

The usual case is a bound percent driven off a task's progress: a getter that returns something new every frame with no write for any invalidation to observe.

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/AProgressBar.h via arc.json · Nov 5, 2026Version 1.0.0