class

MWrapPanel

A flow panel: children are placed along the main axis and wrap to the next line once the running extent would overflow the panel. Horizontal by default (rows of children); vertical flows into columns instead. Item spacing sits between children on a line, line spacing between lines.

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

Type aliases

AliasDescription
using CSlot = CWrapSlot

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
CSlot&AddSlot
voidClearSlots
voidSetHorizontal
voidSetItemSpacing
voidSetLineSpacing
boolIsHorizontal
const std::vector<CSlot>&GetSlots
boolCanCacheDesiredSize
boolCanSkipArrange
boolCanRetainPaintPaints nothing of its own; slot order is the whole slice.
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
int32_tGetNumChildren
TSharedPtr<MWidget>GetChildAt
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MWrapPanel) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)

AddSlot

C++
CSlot& AddSlot()

ClearSlots

C++
void ClearSlots()

SetHorizontal

C++
void SetHorizontal(bool horizontal)

SetItemSpacing

C++
void SetItemSpacing(float spacing)

SetLineSpacing

C++
void SetLineSpacing(float spacing)

IsHorizontal

C++
bool IsHorizontal() const

GetSlots

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

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

CanSkipArrange

C++
bool CanSkipArrange() const override

CanRetainPaint

C++
bool CanRetainPaint() const override

Paints nothing of its own; slot order is the whole slice.

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

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

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

GetTypeName

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