class

ABudgetMeter

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

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidSetValue
floatGetRatio
const ArcColor*FillTokenThe fill token for a value / budget ratio.
std::stringCaption"182 MB of 256 MB · 71 %".
floatPaintThe meter at rect (bar on top, caption under it) for hosts that paint their own card; returns the height it used.
ArcVec2ComputeDesiredSize
int32_tOnPaint
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ABudgetMeter) ARC_ARG(float, Value) ARC_ARG(float, Budget) ARC_ARG(std::string, Unit) ARC_ARG(int32_t, Decimals) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetValue

C++
void SetValue(float value, float budget)

GetRatio

C++
float GetRatio() const

FillToken

C++
static const ArcColor* FillToken(float ratio)

The fill token for a value / budget ratio.

Caption

C++
static std::string Caption(float value, float budget, const std::string& unit, int32_t decimals)

"182 MB of 256 MB · 71 %".

Paint

C++
static float Paint(CArcUIRenderer& renderer, const ArcRect& rect, float value, float budget, const std::string& unit, int32_t decimals, float opacity)

The meter at rect (bar on top, caption under it) for hosts that paint their own card; returns the height it used.

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

GetTypeName

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