class

MSeedField

Module
Miri
Header
#include "Miri/Widgets/MSeedField.h"
Namespace
Miri

Properties

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

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidConstruct
int32_tGetSeed
voidSetSeed
voidRollWhat the dice does on a click, for a host or a test without a pointer.
TSharedPtr<MNumericField>GetField
TSharedPtr<MButton>GetDice
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
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) - 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<MNumericField> GetField() const

GetDice

C++
TSharedPtr<MButton> GetDice() const

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

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

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Miri/Widgets/MSeedField.h via miri.json · Dec 5, 2026Version 1.1.0