class

MShape

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

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
MiriVec2ComputeDesiredSize
int32_tOnPaint
boolCanCacheDesiredSize
boolCanRetainPaint
voidSetProgress
voidSetColor
floatGetProgress
EMiriShapeKindGetKind
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MShape) MIRI_ARG(EMiriShapeKind, Kind) MIRI_ARG(MiriVec2, Size) MIRI_ARG(float, Progress) MIRI_ARG(float, Thickness) MIRI_ARG(MiriColor, Color) MIRI_ARG(MiriColor, TrackColor) MIRI_ARG(bool, RoundCaps) MIRI_ARG(uint32_t, Sides) MIRI_ARG(float, Rotation) MIRI_ARG(float, CornerRadius) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)

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

CanRetainPaint

C++
bool CanRetainPaint() const override

SetProgress

C++
void SetProgress(float progress)

SetColor

C++
void SetColor(const MiriColor& color)

GetProgress

C++
float GetProgress() const

GetKind

C++
EMiriShapeKind GetKind() const

GetTypeName

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