class

ASeedField

Module
Arc
Header
#include "Arc/Widgets/ASeedField.h"
Namespace
Arcf

Properties

TypeNameDescription
static constexpr floatkFieldWidthDefault 84.0f.
ArcDelegate<void(int32_t, bool)>OnSeedRolledA new seed rolled by the dice; the flag is the Ctrl+click.
ArcDelegate<void(int32_t)>OnSeedChangedA seed typed or scrubbed into the field.

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidConstruct
int32_tGetSeed
voidSetSeed
voidRollWhat the dice does on a click, for a host or a test without a pointer.
TSharedPtr<ANumericField>GetField
TSharedPtr<AButton>GetDice
ArcVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ASeedField) ARC_ARG(int32_t, Seed) ARC_ARG(std::string, Label) ARC_ARG(bool, InToolbar) ARC_WIDGET_ARGS_END() static constexpr int32_t kMaxSeed = (1 << 24) - 1

Construct

C++
void Construct(const CArguments& args)

GetSeed

C++
int32_t GetSeed() const

SetSeed

C++
void SetSeed(int32_t seed)

Roll

C++
void Roll(bool keepPrevious)

What the dice does on a click, for a host or a test without a pointer.

GetField

C++
TSharedPtr<ANumericField> GetField() const

GetDice

C++
TSharedPtr<AButton> GetDice() const

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) override

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/ASeedField.h via arc.json · Nov 5, 2026Version 1.0.0