class

ANumericFieldText

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
Arc
Header
#include "Arc/Widgets/ANumericField.h"
Namespace
Arcf

Public functions

ReturnsNameDescription
voidSetOwner
ArcVec2ComputeDesiredSize
int32_tOnPaint
boolCanCacheDesiredSize
boolCanRetainPaint
const char*GetTypeName

Function details

SetOwner

C++
void SetOwner(const ANumericField* owner)

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& 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 Arc/Widgets/ANumericField.h via arc.json · Nov 5, 2026Version 1.0.0