class

AAvatar

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

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
std::stringInitialsOne or two letters: the first of the first and last words.
voidSetName
const std::string&GetInitials
voidSetFillTokenA presence token (Presence1-4) for multi-user avatars; null for the spec's Surface3.
ArcVec2ComputeDesiredSize
int32_tOnPaint
boolCanCacheDesiredSize
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(AAvatar) ARC_ARG(std::string, Name) ARC_ARG(float, Size) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

Initials

C++
static std::string Initials(const std::string& name)

One or two letters: the first of the first and last words.

SetName

C++
void SetName(const std::string& name)

GetInitials

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

SetFillToken

C++
void SetFillToken(const ArcColor* token)

A presence token (Presence1-4) for multi-user avatars; null for the spec's Surface3.

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

GetTypeName

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