Navigation
API > API/Runtime > API/Runtime/UMG
A slot for UGridPanel, these slots all share the same size as the largest slot in the grid.
| Name | UGridSlot |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/GridSlot.h |
| Include Path | #include "Components/GridSlot.h" |
Syntax
UCLASS (MinimalAPI)
class UGridSlot : public UPanelSlot
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UPanelSlot → UGridSlot
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UGridSlot
(
const FObjectInitializer& ObjectInitializer |
Components/GridSlot.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Column | int32 | The column index of the cell this slot is in | Components/GridSlot.h |
|
| ColumnSpan | int32 | Components/GridSlot.h |
|
|
| HorizontalAlignment | TEnumAsByte< EHorizontalAlignment > | The alignment of the object horizontally. | Components/GridSlot.h |
|
| Layer | int32 | Positive values offset this cell to be hit-tested and drawn on top of others. | Components/GridSlot.h |
|
| Nudge | FVector2D | Offset this slot's content by some amount; positive values offset to lower right | Components/GridSlot.h |
|
| Padding | FMargin | The padding area between the slot and the content it contains. | Components/GridSlot.h |
|
| Row | int32 | The row index of the cell this slot is in | Components/GridSlot.h |
|
| RowSpan | int32 | Components/GridSlot.h |
|
|
| VerticalAlignment | TEnumAsByte< EVerticalAlignment > | The alignment of the object vertically. | Components/GridSlot.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Slot | SGridPanel::FSlot * | A raw pointer to the slot to allow us to adjust the size, padding...etc at runtime. | Components/GridSlot.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BuildSlot
(
TSharedRef< SGridPanel > GridPanel |
Builds the underlying FSlot for the Slate layout panel. | Components/GridSlot.h | |
int32 GetColumn() |
Gets the column index of the slot | Components/GridSlot.h | |
int32 GetColumnSpan() |
Gets how many columns this slot spans over | Components/GridSlot.h | |
EHorizontalAlignment GetHorizontalAlignment() |
Components/GridSlot.h | ||
int32 GetLayer() |
Gets the offset this cell drawn on top of others. | Components/GridSlot.h | |
FVector2D GetNudge() |
Gets the offset for this slot's content | Components/GridSlot.h | |
FMargin GetPadding() |
Components/GridSlot.h | ||
int32 GetRow() |
Gets the row index of the slot | Components/GridSlot.h | |
int32 GetRowSpan() |
Gets how many rows this this slot spans over | Components/GridSlot.h | |
EVerticalAlignment GetVerticalAlignment() |
Components/GridSlot.h | ||
void SetColumn
(
int32 InColumn |
Sets the column index of the slot, this determines what cell the slot is in the panel | Components/GridSlot.h |
|
void SetColumnSpan
(
int32 InColumnSpan |
How many columns this slot spans over | Components/GridSlot.h |
|
void SetHorizontalAlignment
(
EHorizontalAlignment InHorizontalAlignment |
Components/GridSlot.h |
|
|
void SetLayer
(
int32 InLayer |
Sets positive values offset this cell to be hit-tested and drawn on top of others. | Components/GridSlot.h |
|
void SetNudge
(
FVector2D InNudge |
Sets the offset for this slot's content by some amount; positive values offset to lower right | Components/GridSlot.h |
|
void SetPadding
(
FMargin InPadding |
Components/GridSlot.h |
|
|
void SetRow
(
int32 InRow |
Sets the row index of the slot, this determines what cell the slot is in the panel | Components/GridSlot.h |
|
void SetRowSpan
(
int32 InRowSpan |
How many rows this this slot spans over | Components/GridSlot.h |
|
void SetVerticalAlignment
(
EVerticalAlignment InVerticalAlignment |
Components/GridSlot.h |
|
Overridden from UPanelSlot
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool NudgeByDesigner
(
const FVector2D& NudgeDirection, |
Called by the designer to "nudge" a widget in a direction. | Components/GridSlot.h | |
virtual void SynchronizeFromTemplate
(
const UPanelSlot*const TemplateSlot |
Called by the designer when a design-time widget needs to have changes to its associated template synchronized. | Components/GridSlot.h | |
virtual void SynchronizeProperties() |
Applies all properties to the live slot if possible. | Components/GridSlot.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/GridSlot.h |