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
| Alias | Description |
|---|---|
using CSlot = CGridSlot |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
CSlot& | AddSlot | |
AGridPanel& | operator+ | |
CSlot | Slot | |
void | ClearSlots | |
void | SetColumns | |
void | SetRows | |
void | SetColumnGap | |
void | SetRowGap | |
const std::vector<CGridTrackSize>& | GetColumns | |
const std::vector<CGridTrackSize>& | GetRows | |
const std::vector<CSlot>& | GetSlots | |
const std::vector<float>& | GetColumnExtents | Track pixel extents resolved by the last ArrangeChildren, one per effective column / row. |
const std::vector<float>& | GetRowExtents | |
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(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() constGetRows
C++
const std::vector<CGridTrackSize>& GetRows() constGetSlots
C++
const std::vector<CSlot>& GetSlots() constGetColumnExtents
C++
const std::vector<float>& GetColumnExtents() constTrack pixel extents resolved by the last ArrangeChildren, one per effective column / row. Empty before the first arrange.
GetRowExtents
C++
const std::vector<float>& GetRowExtents() 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/AGridPanel.h via arc.json · Nov 5, 2026Version 1.0.0