class
MSeedField
- Module
- Miri
- Header
#include "Miri/Widgets/MSeedField.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
static constexpr float | kFieldWidth | Default 84.0f. |
MiriDelegate<void(int32_t, bool)> | OnSeedRolled | A new seed rolled by the dice; the flag is the Ctrl+click. |
MiriDelegate<void(int32_t)> | OnSeedChanged | A seed typed or scrubbed into the field. |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_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<MNumericField> | GetField | |
TSharedPtr<MButton> | GetDice | |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
const char* | GetTypeName |
Function details
MIRI_WIDGET_ARGS
C++
MIRI_WIDGET_ARGS(MSeedField) MIRI_ARG(int32_t, Seed) MIRI_ARG(std::string, Label) MIRI_ARG(bool, InToolbar) MIRI_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<MNumericField> GetField() constGetDice
C++
TSharedPtr<MButton> GetDice() constComputeDesiredSize
C++
MiriVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MSeedField.h via miri.json · Dec 5, 2026Version 1.1.0