class

AGridPanel

A real two-dimensional grid: children are placed by (row, column) with per-axis spans, tracks size independently (auto / fixed / star) and a gap sits between adjacent tracks. Tracks the caller does not declare are synthesised on demand — implicit columns fill with Star, implicit rows with Auto — so a grid authored with only a column count still lays out.

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

Type aliases

AliasDescription
using CSlot = CGridSlot

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
CSlot&AddSlot
AGridPanel&operator+
CSlotSlot
voidClearSlots
voidSetColumns
voidSetRows
voidSetColumnGap
voidSetRowGap
const std::vector<CGridTrackSize>&GetColumns
const std::vector<CGridTrackSize>&GetRows
const std::vector<CSlot>&GetSlots
const std::vector<float>&GetColumnExtentsTrack pixel extents resolved by the last ArrangeChildren, one per effective column / row.
const std::vector<float>&GetRowExtents
boolCanCacheDesiredSize
boolCanSkipArrange
boolCanRetainPaintPaints nothing of its own; slot order is the whole slice.
ArcVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
int32_tGetNumChildren
TSharedPtr<AWidget>GetChildAt
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(AGridPanel) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

AddSlot

C++
CSlot& AddSlot()

operator+

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

Slot

C++
static CSlot Slot()

ClearSlots

C++
void ClearSlots()

SetColumns

C++
void SetColumns(const std::vector<CGridTrackSize>& columns)

SetRows

C++
void SetRows(const std::vector<CGridTrackSize>& rows)

SetColumnGap

C++
void SetColumnGap(float gap)

SetRowGap

C++
void SetRowGap(float gap)

GetColumns

C++
const std::vector<CGridTrackSize>& GetColumns() const

GetRows

C++
const std::vector<CGridTrackSize>& GetRows() const

GetSlots

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

GetColumnExtents

C++
const std::vector<float>& GetColumnExtents() const

Track pixel extents resolved by the last ArrangeChildren, one per effective column / row. Empty before the first arrange.

GetRowExtents

C++
const std::vector<float>& GetRowExtents() 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++
ArcVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) override

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const override

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

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

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/AGridPanel.h via arc.json · Nov 5, 2026Version 1.0.0