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
| Returns | Name | Description |
|---|---|---|
void | SetOwner | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
bool | CanCacheDesiredSize | |
bool | CanRetainPaint | |
const char* | GetTypeName |
Function details
SetOwner
C++
void SetOwner(const ANumericField* owner)ComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideCanRetainPaint
C++
bool CanRetainPaint() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ANumericField.h via arc.json · Nov 5, 2026Version 1.0.0