class

MNumericFieldText

The part of a numeric field that cannot be replayed: the value text, the selection highlight and the caret. It is a leaf the field owns and arranges over its own rect, hit-test invisible so every press still lands on the field, and it refuses retained paint only while it has something moving to show — a caret, a scrubbed value, a run of digits wider than the frame that needs a clip. Idle, it is as replayable as any text block, which is what lets the frame around it retain at all.

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

Public functions

ReturnsNameDescription
voidSetOwner
MiriVec2ComputeDesiredSize
int32_tOnPaint
boolCanCacheDesiredSize
boolCanRetainPaint
const char*GetTypeName

Function details

SetOwner

C++
void SetOwner(const MNumericField* owner)

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

GetTypeName

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