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
| Type | Name | Description |
|---|---|---|
std::string | Type | Default "CanvasPanel". |
std::string | Name | |
bool | Variable | Default false. |
EMiriGraphicsAnchor | Anchor | Default EMiriGraphicsAnchor::TopLeft. |
Vec2 | Position | Default Vec2(0.0f, 0.0f). |
Vec2 | Size | Default Vec2(200.0f, 48.0f). |
int32_t | ZOrder | Default 0. |
bool | CustomOffsetHigh | Per-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. |
Vec2 | OffsetHigh | Default Vec2(0.0f, 0.0f). |
bool | CustomAnchors | Fractional anchors + alignment pivot overriding the ten presets. Default false. |
Vec2 | AnchorMin | Default Vec2(0.0f, 0.0f). |
Vec2 | AnchorMax | Default Vec2(0.0f, 0.0f). |
bool | CustomAlignment | Default false. |
Vec2 | Alignment | Default Vec2(0.0f, 0.0f). |
bool | SizeToContentX | Default false. |
bool | SizeToContentY | Default false. |
bool | CustomSlotMargin | How 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. |
Vec4 | SlotMargin | Default Vec4(0.0f, 0.0f, 0.0f, 0.0f). |
float | SlotFill | Default 0.0f. |
EMiriGraphicsSlotAlign | SlotHAlign | Default EMiriGraphicsSlotAlign::Default. |
EMiriGraphicsSlotAlign | SlotVAlign | Default EMiriGraphicsSlotAlign::Default. |
bool | DesignHidden | Designer-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. |
bool | DesignLocked | Default false. |
std::vector<std::pair<std::string, MDF::MdfValue>> | Props | |
std::vector<std::pair<std::string, FMiriGraphicsBrushDesc>> | Brushes | Named 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
| Returns | Name | Description |
|---|---|---|
const MDF::MdfValue* | FindProp | |
void | SetProp | |
bool | RemoveProp | |
const FMiriGraphicsBrushDesc* | FindBrush | |
void | SetBrush | |
std::string | GetString | |
float | GetFloat | |
bool | GetBool | |
const FMiriGraphicsBinding* | FindBinding | |
void | SetBinding | |
const FMiriGraphicsEvent* | FindEvent | |
FMiriGraphicsCanvasSlot | ResolveCanvasSlot | The authored shorthand expanded into the full canvas-slot form. |
FMiriGraphicsNode* | FindDescendant |
Function details
FindProp
C++
const MDF::MdfValue* FindProp(const std::string& key) constSetProp
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) constSetBrush
C++
void SetBrush(const std::string& name, FMiriGraphicsBrushDesc brush)GetString
C++
std::string GetString(const std::string& key, const std::string& def) constGetFloat
C++
float GetFloat(const std::string& key, float def) constGetBool
C++
bool GetBool(const std::string& key, bool def) constFindBinding
C++
const FMiriGraphicsBinding* FindBinding(const std::string& property) constSetBinding
C++
void SetBinding(const std::string& property, const std::string& source)FindEvent
C++
const FMiriGraphicsEvent* FindEvent(const std::string& event) constResolveCanvasSlot
C++
FMiriGraphicsCanvasSlot ResolveCanvasSlot() constThe 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