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