class

MSpinner

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

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidConstruct
voidSetSpinningStops the clock (and lets an idle host sleep) while the work it stands for is paused or done but the widget is still on screen.
boolIsSpinning
floatGetAngleRotation in radians this frame; 0 under reduced motion.
MiriVec2ComputeDesiredSize
int32_tOnPaint
boolCanCacheDesiredSize
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MSpinner) MIRI_ARG(float, Size) MIRI_ATTR(MiriColor, Color) MIRI_WIDGET_ARGS_END() static constexpr float PERIOD_SECONDS = 0.9f

Construct

C++
void Construct(const CArguments& args)

SetSpinning

C++
void SetSpinning(bool spinning)

Stops the clock (and lets an idle host sleep) while the work it stands for is paused or done but the widget is still on screen.

IsSpinning

C++
bool IsSpinning() const

GetAngle

C++
float GetAngle() const

Rotation in radians this frame; 0 under reduced motion.

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/MSpinner.h via miri.json · Dec 5, 2026Version 1.1.0