Navigation
API > API/Runtime > API/Runtime/Slate
| Name | SGridPanel |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SGridPanel.h |
| Include Path | #include "Widgets/Layout/SGridPanel.h" |
Syntax
class SGridPanel : public SPanel
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SPanel → SGridPanel
- FSlateControlledConstruction → SWidget → SPanel → SGridPanel
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SGridPanel() |
Widgets/Layout/SGridPanel.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~SGridPanel() |
Widgets/Layout/SGridPanel.h |
Classes
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FScopedWidgetSlotArguments | TPanelChildren< FSlot >::FScopedWidgetSlotArguments | Widgets/Layout/SGridPanel.h | |
| PrivateParentType | SPanel | Widgets/Layout/SGridPanel.h | |
| PrivateThisType | SGridPanel | Widgets/Layout/SGridPanel.h | |
| Super | SPanel | Widgets/Layout/SGridPanel.h | |
| ThisClass | SGridPanel | Widgets/Layout/SGridPanel.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Columns | TArray< float > | Offsets of each column from the beginning of the grid. | Widgets/Layout/SGridPanel.h | |
| Rows | TArray< float > | Offsets of each row from the beginning of the grid. | Widgets/Layout/SGridPanel.h | |
| Slots | TPanelChildren< FSlot > | The slots that are placed into various grid locations | Widgets/Layout/SGridPanel.h | |
| TotalDesiredSizes | FVector2D | Total desires size along each axis. | Widgets/Layout/SGridPanel.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Dynamically add a new slot to the UI at specified Column and Row. | Widgets/Layout/SGridPanel.h | ||
void ClearChildren() |
Removes all slots from the panel | Widgets/Layout/SGridPanel.h | |
void ClearFill() |
Clear the row and column fill rules. | Widgets/Layout/SGridPanel.h | |
void Construct
(
const FArguments& InArgs |
Widgets/Layout/SGridPanel.h | ||
FVector2D GetDesiredRegionSize
(
const FIntPoint& StartCell, |
GetDesiredSize of a subregion in the graph. | Widgets/Layout/SGridPanel.h | |
bool RemoveSlot
(
const TSharedRef< SWidget >& SlotWidget |
Removes a slot from this panel which contains the specified SWidget | Widgets/Layout/SGridPanel.h | |
void SetColumnFill
(
int32 ColumnId, |
Specify a column to stretch instead of sizing to content. | Widgets/Layout/SGridPanel.h | |
void SetRowFill
(
int32 RowId, |
Specify a row to stretch instead of sizing to content. | Widgets/Layout/SGridPanel.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CacheDesiredSize
(
float |
Widgets/Layout/SGridPanel.h | ||
virtual FVector2D ComputeDesiredSize
(
float |
Widgets/Layout/SGridPanel.h | ||
virtual FChildren * GetChildren() |
Widgets/Layout/SGridPanel.h | ||
virtual void OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Widgets/Layout/SGridPanel.h | ||
virtual int32 OnPaint
(
const FPaintArgs& Args, |
Widgets/Layout/SGridPanel.h |
Overridden from FSlateControlledConstruction
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FSlateWidgetClassData & GetWidgetClass() |
Widgets/Layout/SGridPanel.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ComputePartialSums
(
TArray< float >& TurnMeIntoPartialSums |
Given an array of values, re-populate the array such that every contains the partial sums up to that element. | Widgets/Layout/SGridPanel.h | |
static void DistributeSizeContributions
(
float SizeContribution, |
Given a SizeContribution, distribute it to the elements in DistributeOverMe at indexes from [StartIndex .. UpperBound) | Widgets/Layout/SGridPanel.h | |
static const FSlateWidgetClassData & GetPrivateWidgetClass() |
Widgets/Layout/SGridPanel.h | ||
static SLATE_API void PrivateRegisterAttributes
(
FSlateAttributeInitializer& |
Widgets/Layout/SGridPanel.h | ||
static FSlot::FSlotArguments Slot
(
int32 Column, |
Used by declarative syntax to create a Slot in the specified Column, Row and Layer. | Widgets/Layout/SGridPanel.h | |
static const FSlateWidgetClassData & StaticWidgetClass() |
Widgets/Layout/SGridPanel.h |