Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UPanelSlot
- UGridSlot
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/GridSlot.h |
| Include | #include "Components/GridSlot.h" |
Syntax
class UGridSlot : public UPanelSlot
Remarks
A slot for UGridPanel, these slots all share the same size as the largest slot in the grid.
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 |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | Column | Direct access to Column is deprecated. Please use the getter or setter. | |
| int32 | ColumnSpan | Direct access to ColumnSpan is deprecated. Please use the getter or setter. | |
| TEnumAsByte< EHorizontalAlignment > | HorizontalAlignment | Direct access to HorizontalAlignment is deprecated. Please use the getter or setter. | |
| int32 | Layer | Direct access to Layer is deprecated. Please use the getter or setter. | |
| FVector2D | Nudge | Direct access to Nudge is deprecated. Please use the getter or setter. | |
| FMargin | Padding | Direct access to Padding is deprecated. Please use the getter or setter. | |
| int32 | Row | Direct access to Row is deprecated. Please use the getter or setter. | |
| int32 | RowSpan | Direct access to RowSpan is deprecated. Please use the getter or setter. | |
| TEnumAsByte< EVerticalAlignment > | VerticalAlignment | Direct access to VerticalAlignment is deprecated. Please use the getter or setter. |