class
AProgressBar
- Module
- Arc
- Header
#include "Arc/Widgets/AProgressBar.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | 4 px, or 2 px for the thin (splash) bar. | |
void | Construct | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
void | SetPercent | 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. |
void | SetFillColor | |
void | SetBarState | |
EProgressBarState | GetBarState | |
float | GetPercent | |
bool | CanCacheDesiredSize | A fixed bar; progress fills it rather than resizing it. |
bool | CanRetainPaint | 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. |
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() const4 px, or 2 px for the thin (splash) bar.
Construct
C++
void Construct(const CArguments& args)ComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideSetPercent
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() constGetPercent
C++
float GetPercent() constCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideA fixed bar; progress fills it rather than resizing it.
CanRetainPaint
C++
bool CanRetainPaint() const overrideThe 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 overrideGenerated from Arc/Widgets/AProgressBar.h via arc.json · Nov 5, 2026Version 1.0.0