struct

FMiriGraphicsNode

A single node in the serialized Miri widget tree: which Miri widget class to build, its canvas anchoring/placement, its widget-specific properties, its data bindings and its children. Value type — the whole tree is a plain, copyable structure the editor edits in place and the factory reads.

Module
MiriGraphics
Header
#include "MiriGraphics/FMiriGraphicsAsset.h"
Namespace
Mowo

Properties

TypeNameDescription
std::stringTypeDefault "CanvasPanel".
std::stringName
boolVariableDefault false.
EMiriGraphicsAnchorAnchorDefault EMiriGraphicsAnchor::TopLeft.
Vec2PositionDefault Vec2(0.0f, 0.0f).
Vec2SizeDefault Vec2(200.0f, 48.0f).
int32_tZOrderDefault 0.
boolCustomOffsetHighPer-side stretch offsets: Position is the left/top inset, this is the right/bottom one. Absent means the legacy symmetric behaviour (the far inset mirrors the near one), so assets authored before it load unchanged. Default false.
Vec2OffsetHighDefault Vec2(0.0f, 0.0f).
boolCustomAnchorsFractional anchors + alignment pivot overriding the ten presets. Default false.
Vec2AnchorMinDefault Vec2(0.0f, 0.0f).
Vec2AnchorMaxDefault Vec2(0.0f, 0.0f).
boolCustomAlignmentDefault false.
Vec2AlignmentDefault Vec2(0.0f, 0.0f).
boolSizeToContentXDefault false.
boolSizeToContentYDefault false.
boolCustomSlotMarginHow this child sits inside an auto-layout parent. Absent fields mean the parent's own uniform spacing decides, which is what every asset authored before the designer grew slot rows carries — a node that never had one of these written must lay out byte-identically to how it did then. Default false.
Vec4SlotMarginDefault Vec4(0.0f, 0.0f, 0.0f, 0.0f).
floatSlotFillDefault 0.0f.
EMiriGraphicsSlotAlignSlotHAlignDefault EMiriGraphicsSlotAlign::Default.
EMiriGraphicsSlotAlignSlotVAlignDefault EMiriGraphicsSlotAlign::Default.
boolDesignHiddenDesigner-only state, UMG's bHiddenInDesigner / bLockedInDesigner. The factory ignores both unless the host asks for designer semantics, so hiding a node while authoring can never change what ships. Default false.
boolDesignLockedDefault false.
std::vector<std::pair<std::string, MDF::MdfValue>>Props
std::vector<std::pair<std::string, FMiriGraphicsBrushDesc>>BrushesNamed brush descriptions ("background", "normal", "image"): the widget builder resolves the ones its type reads against the theme.
std::vector<FMiriGraphicsBinding>Bindings
std::vector<FMiriGraphicsEvent>Events
std::vector<FMiriGraphicsStateTransition>Transitions
std::vector<FMiriGraphicsNode>Children

Public functions

ReturnsNameDescription
const MDF::MdfValue*FindProp
voidSetProp
boolRemoveProp
const FMiriGraphicsBrushDesc*FindBrush
voidSetBrush
std::stringGetString
floatGetFloat
boolGetBool
const FMiriGraphicsBinding*FindBinding
voidSetBinding
const FMiriGraphicsEvent*FindEvent
FMiriGraphicsCanvasSlotResolveCanvasSlotThe authored shorthand expanded into the full canvas-slot form.
FMiriGraphicsNode*FindDescendant

Function details

FindProp

C++
const MDF::MdfValue* FindProp(const std::string& key) const

SetProp

C++
void SetProp(const std::string& key, MDF::MdfValue value)

RemoveProp

C++
bool RemoveProp(const std::string& key)

FindBrush

C++
const FMiriGraphicsBrushDesc* FindBrush(const std::string& name) const

SetBrush

C++
void SetBrush(const std::string& name, FMiriGraphicsBrushDesc brush)

GetString

C++
std::string GetString(const std::string& key, const std::string& def) const

GetFloat

C++
float GetFloat(const std::string& key, float def) const

GetBool

C++
bool GetBool(const std::string& key, bool def) const

FindBinding

C++
const FMiriGraphicsBinding* FindBinding(const std::string& property) const

SetBinding

C++
void SetBinding(const std::string& property, const std::string& source)

FindEvent

C++
const FMiriGraphicsEvent* FindEvent(const std::string& event) const

ResolveCanvasSlot

C++
FMiriGraphicsCanvasSlot ResolveCanvasSlot() const

The authored shorthand expanded into the full canvas-slot form.

FindDescendant

C++
FMiriGraphicsNode* FindDescendant(const std::string& name)
Generated from MiriGraphics/FMiriGraphicsAsset.h via mirigraphics.json · Dec 5, 2026Version 1.1.0