class

ABoxPanel

Abstract base for HBox/VBox

Module
Arc
Header
#include "Arc/Widgets/ABoxPanel.h"
Namespace
Arcf

Type aliases

AliasDescription
using CSlot = CBoxSlot

Public functions

ReturnsNameDescription
voidSetFlowDirection
EFlowDirectionGetFlowDirection
CSlot&AddSlot
ABoxPanel&operator+Usage: ArcNew(AHorizontalBox) + AHorizontalBox::Slot().AutoWidth()[ child ]
ABoxPanel&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 ArcNew works.
CSlotSlot
voidClearSlots
int32_tGetNumChildren
TSharedPtr<AWidget>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.
ARC_WIDGET_ARGS

Function details

SetFlowDirection

C++
void SetFlowDirection(EFlowDirection direction)

GetFlowDirection

C++
EFlowDirection GetFlowDirection() const

AddSlot

C++
CSlot& AddSlot()

operator+

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

Usage: ArcNew(AHorizontalBox) + AHorizontalBox::Slot().AutoWidth()[ child ]

operator+

C++
ABoxPanel& 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 ArcNew works.

Slot

C++
static CSlot Slot()

ClearSlots

C++
void ClearSlots()

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

C++
TSharedPtr<AWidget> 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.

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ABoxPanel) ARC_CHILD_SLOTS(CBoxSlot, Slots) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)
Generated from Arc/Widgets/ABoxPanel.h via arc.json · Nov 5, 2026Version 1.0.0