class

ABadge

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

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidSetCount
voidSetText
voidSetTone
voidSetShape
std::stringFormatCountWhat a Count badge shows: the number, or "99+" above 99.
const std::string&GetText
ArcVec2ComputeDesiredSize
int32_tOnPaint
boolCanCacheDesiredSize
boolCanRetainPaint
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ABadge) ARC_ARG(EBadgeShape, Shape) ARC_ARG(EBadgeTone, Tone) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetCount

C++
void SetCount(int32_t count)

SetText

C++
void SetText(const std::string& text)

SetTone

C++
void SetTone(EBadgeTone tone)

SetShape

C++
void SetShape(EBadgeShape shape)

FormatCount

C++
static std::string FormatCount(int32_t count)

What a Count badge shows: the number, or "99+" above 99.

GetText

C++
const std::string& GetText() const

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

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

CanRetainPaint

C++
bool CanRetainPaint() const override

GetTypeName

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