class
AWrapPanel
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
- Arc
- Header
#include "Arc/Widgets/AWrapPanel.h"- Namespace
Arcf
Type aliases
| Alias | Description |
|---|---|
using CSlot = CWrapSlot |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
CSlot& | AddSlot | |
void | ClearSlots | |
void | SetHorizontal | |
void | SetItemSpacing | |
void | SetLineSpacing | |
bool | IsHorizontal | |
const std::vector<CSlot>& | GetSlots | |
bool | CanCacheDesiredSize | |
bool | CanSkipArrange | |
bool | CanRetainPaint | Paints nothing of its own; slot order is the whole slice. |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
int32_t | GetNumChildren | |
TSharedPtr<AWidget> | GetChildAt | |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(AWrapPanel) ARC_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() constGetSlots
C++
const std::vector<CSlot>& GetSlots() constCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideCanRetainPaint
C++
bool CanRetainPaint() const overridePaints nothing of its own; slot order is the whole slice.
ComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideGetChildAt
C++
TSharedPtr<AWidget> GetChildAt(int32_t index) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AWrapPanel.h via arc.json · Nov 5, 2026Version 1.0.0