class
MAvatar
- Module
- Miri
- Header
#include "Miri/Widgets/MAvatar.h"- Namespace
Miri
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_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. |
MiriVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
bool | CanCacheDesiredSize | |
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() constSetFillToken
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 overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MAvatar.h via miri.json · Dec 5, 2026Version 1.1.0