class
MBoxPanel
Abstract base for HBox/VBox
- Module
- Miri
- Header
#include "Miri/Widgets/MBoxPanel.h"- Namespace
Miri
Type aliases
| Alias | Description |
|---|---|
using CSlot = CBoxSlot |
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetFlowDirection | |
EFlowDirection | GetFlowDirection | |
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. |
CSlot | Slot | |
void | MoveSlot | |
void | ClearSlots | |
int32_t | GetNumChildren | |
TSharedPtr<MWidget> | GetChildAt | |
const std::vector<CSlot>& | GetSlots | |
bool | CanCacheDesiredSize | |
bool | CanSkipArrange | 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. |
bool | CanRetainPaint | Paints 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() constAddSlot
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 overrideGetChildAt
C++
TSharedPtr<MWidget> GetChildAt(int32_t index) const overrideGetSlots
C++
const std::vector<CSlot>& GetSlots() constCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideSlot 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 overridePaints 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