class
ABoxPanel
Abstract base for HBox/VBox
- Module
- Arc
- Header
#include "Arc/Widgets/ABoxPanel.h"- Namespace
Arcf
Type aliases
| Alias | Description |
|---|---|
using CSlot = CBoxSlot |
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetFlowDirection | |
EFlowDirection | GetFlowDirection | |
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. |
CSlot | Slot | |
void | ClearSlots | |
int32_t | GetNumChildren | |
TSharedPtr<AWidget> | 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. |
ARC_WIDGET_ARGS |
Function details
SetFlowDirection
C++
void SetFlowDirection(EFlowDirection direction)GetFlowDirection
C++
EFlowDirection GetFlowDirection() constAddSlot
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 overrideGetChildAt
C++
TSharedPtr<AWidget> 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.
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