class
AAvatar
- Module
- Arc
- Header
#include "Arc/Widgets/AAvatar.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
std::string | Initials | One or two letters: the first of the first and last words. |
void | SetName | |
const std::string& | GetInitials | |
void | SetFillToken | A presence token (Presence1-4) for multi-user avatars; null for the spec's Surface3. |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
bool | CanCacheDesiredSize | |
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() constSetFillToken
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 overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AAvatar.h via arc.json · Nov 5, 2026Version 1.0.0