class
ASeedField
- Module
- Arc
- Header
#include "Arc/Widgets/ASeedField.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
static constexpr float | kFieldWidth | Default 84.0f. |
ArcDelegate<void(int32_t, bool)> | OnSeedRolled | A new seed rolled by the dice; the flag is the Ctrl+click. |
ArcDelegate<void(int32_t)> | OnSeedChanged | A seed typed or scrubbed into the field. |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | Construct | |
int32_t | GetSeed | |
void | SetSeed | |
void | Roll | What the dice does on a click, for a host or a test without a pointer. |
TSharedPtr<ANumericField> | GetField | |
TSharedPtr<AButton> | GetDice | |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
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) - 1Construct
C++
void Construct(const CArguments& args)GetSeed
C++
int32_t GetSeed() constSetSeed
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() constGetDice
C++
TSharedPtr<AButton> GetDice() constComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ASeedField.h via arc.json · Nov 5, 2026Version 1.0.0