class

MBoxPanel

Abstract base for HBox/VBox

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

Type aliases

AliasDescription
using CSlot = CBoxSlot

Public functions

ReturnsNameDescription
voidSetFlowDirection
EFlowDirectionGetFlowDirection
CSlot&AddSlot
MBoxPanel&operator+Usage: MiriNew(MHorizontalBox) + MHorizontalBox::Slot().AutoWidth()[ child ]
MBoxPanel&operator+The slot chain (Slot().AutoHeight()[child]) yields an lvalue reference to the temporary, which the rvalue overload above cannot bind — without this a post-construction *box + Slot()... fails to compile while the identical chain inside MiriNew works.
CSlotSlot
voidMoveSlot
voidClearSlots
int32_tGetNumChildren
TSharedPtr<MWidget>GetChildAt
const std::vector<CSlot>&GetSlots
boolCanCacheDesiredSize
boolCanSkipArrangeSlot geometry is a pure function of the allotted rect, the slot parameters and the children's cached desired sizes; every setter that touches any of those invalidates.
boolCanRetainPaintPaints nothing of its own — the slice is the children's, in slot order, which is exactly what a replay reproduces.
MIRI_WIDGET_ARGS

Function details

SetFlowDirection

C++
void SetFlowDirection(EFlowDirection direction)

GetFlowDirection

C++
EFlowDirection GetFlowDirection() const

AddSlot

C++
CSlot& AddSlot()

operator+

C++
MBoxPanel& operator+(CSlot&& slot)

Usage: MiriNew(MHorizontalBox) + MHorizontalBox::Slot().AutoWidth()[ child ]

operator+

C++
MBoxPanel& operator+(CSlot& slot)

The slot chain (Slot().AutoHeight()[child]) yields an lvalue reference to the temporary, which the rvalue overload above cannot bind — without this a post-construction *box + Slot()... fails to compile while the identical chain inside MiriNew works.

Slot

C++
static CSlot Slot()

MoveSlot

C++
void MoveSlot(int32_t from, int32_t to)

ClearSlots

C++
void ClearSlots()

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

C++
TSharedPtr<MWidget> GetChildAt(int32_t index) const override

GetSlots

C++
const std::vector<CSlot>& GetSlots() const

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

CanSkipArrange

C++
bool CanSkipArrange() const override

Slot geometry is a pure function of the allotted rect, the slot parameters and the children's cached desired sizes; every setter that touches any of those invalidates.

CanRetainPaint

C++
bool CanRetainPaint() const override

Paints nothing of its own — the slice is the children's, in slot order, which is exactly what a replay reproduces.

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MBoxPanel) MIRI_CHILD_SLOTS(CBoxSlot, Slots) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)
Generated from Miri/Widgets/MBoxPanel.h via miri.json · Dec 5, 2026Version 1.1.0