class
ABudgetMeter
- Module
- Arc
- Header
#include "Arc/Widgets/ABudgetMeter.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetValue | |
float | GetRatio | |
const ArcColor* | FillToken | The fill token for a value / budget ratio. |
std::string | Caption | "182 MB of 256 MB · 71 %". |
float | Paint | The meter at rect (bar on top, caption under it) for hosts that paint their own card; returns the height it used. |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
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() constFillToken
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 overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ABudgetMeter.h via arc.json · Nov 5, 2026Version 1.0.0