class

MAvatar

Module
Miri
Header
#include "Miri/Widgets/MAvatar.h"
Namespace
Miri

Public functions

ReturnsNameDescription
MIRI_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.
MiriVec2ComputeDesiredSize
int32_tOnPaint
boolCanCacheDesiredSize
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MAvatar) MIRI_ARG(std::string, Name) MIRI_ARG(float, Size) MIRI_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 MiriColor* token)

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

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const override

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Miri/Widgets/MAvatar.h via miri.json · Dec 5, 2026Version 1.1.0