Navigation
API > API/Runtime > API/Runtime/Slate
A panel that evenly divides up available space between all of its children.
| Name | SUniformGridPanel |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SUniformGridPanel.h |
| Include Path | #include "Widgets/Layout/SUniformGridPanel.h" |
Syntax
class SUniformGridPanel : public SPanel
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SPanel → SUniformGridPanel
- FSlateControlledConstruction → SWidget → SPanel → SUniformGridPanel
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SUniformGridPanel() |
Widgets/Layout/SUniformGridPanel.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~SUniformGridPanel() |
Widgets/Layout/SUniformGridPanel.h |
Structs
| Name | Remarks |
|---|---|
| FArguments | |
| FSlot | Stores the per-child info for this panel type |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FScopedWidgetSlotArguments | TPanelChildren< FSlot >::FScopedWidgetSlotArguments | Widgets/Layout/SUniformGridPanel.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Children | TPanelChildren< FSlot > | Widgets/Layout/SUniformGridPanel.h | ||
| CollapsedColumns | TSet< int32 > | Widgets/Layout/SUniformGridPanel.h | ||
| CollapsedRows | TSet< int32 > | Widgets/Layout/SUniformGridPanel.h | ||
| MinDesiredSlotHeight | TSlateAttribute< float, EInvalidateWidgetReason::Layout > | Widgets/Layout/SUniformGridPanel.h | ||
| MinDesiredSlotWidth | TSlateAttribute< float, EInvalidateWidgetReason::Layout > | Widgets/Layout/SUniformGridPanel.h | ||
| NumColumns | int32 | These values are recomputed and cached during compute desired size, as they may have changed since the previous frame. | Widgets/Layout/SUniformGridPanel.h | |
| NumRows | int32 | Widgets/Layout/SUniformGridPanel.h | ||
| SlotPadding | TSlateAttribute< FMargin, EInvalidateWidgetReason::Layout > | Widgets/Layout/SUniformGridPanel.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FScopedWidgetSlotArguments AddSlot
(
int32 Column, |
Dynamically add a new slot to the UI at specified Column and Row. | Widgets/Layout/SUniformGridPanel.h | |
void ClearChildren() |
Removes all slots from the panel | Widgets/Layout/SUniformGridPanel.h | |
void Construct
(
const FArguments& InArgs |
Widgets/Layout/SUniformGridPanel.h | ||
bool RemoveSlot
(
const TSharedRef< SWidget >& SlotWidget |
Removes a slot from this panel which contains the specified SWidget | Widgets/Layout/SUniformGridPanel.h | |
void SetMinDesiredSlotHeight
(
TAttribute< float > InMinDesiredSlotHeight |
See MinDesiredSlotHeight attribute | Widgets/Layout/SUniformGridPanel.h | |
void SetMinDesiredSlotWidth
(
TAttribute< float > InMinDesiredSlotWidth |
See MinDesiredSlotWidth attribute | Widgets/Layout/SUniformGridPanel.h | |
void SetSlotPadding
(
TAttribute< FMargin > InSlotPadding |
See SlotPadding attribute | Widgets/Layout/SUniformGridPanel.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FChildren * GetChildren() |
Widgets/Layout/SUniformGridPanel.h | ||
virtual void OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Widgets/Layout/SUniformGridPanel.h |
Protected
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector2D ComputeDesiredSize
(
float |
Widgets/Layout/SUniformGridPanel.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FSlot::FSlotArguments Slot
(
int32 Column, |
Used by declarative syntax to create a Slot in the specified Column, Row. | Widgets/Layout/SUniformGridPanel.h |