class
AUniformGridPanel
A grid of equal cells: every child gets the same cell size, laid out row by row across a fixed number of columns. The cell claims the largest child's desired size (bounded below by the minimum cell size) when the panel sizes to content, and an equal share of the allotted space when it is stretched.
- Module
- Arc
- Header
#include "Arc/Widgets/AUniformGridPanel.h"- Namespace
Arcf
Type aliases
| Alias | Description |
|---|---|
using CSlot = CUniformGridSlot |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
CSlot& | AddSlot | |
void | ClearSlots | |
void | SetColumns | |
void | SetSlotPadding | |
void | SetMinCellSize | |
int32_t | GetColumns | |
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(AUniformGridPanel) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)AddSlot
C++
CSlot& AddSlot()ClearSlots
C++
void ClearSlots()SetColumns
C++
void SetColumns(int32_t columns)SetSlotPadding
C++
void SetSlotPadding(float padding)SetMinCellSize
C++
void SetMinCellSize(float width, float height)GetColumns
C++
int32_t GetColumns() 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/AUniformGridPanel.h via arc.json · Nov 5, 2026Version 1.0.0