UGridSlot

A slot for [UGridPanel](API\Runtime\UMG\Components\UGridPanel), these slots all share the same size as the largest slot in the grid.

Windows
MacOS
Linux

Inheritance Hierarchy

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.

Variables

Name Description

Public variable

int32

 

Column

The column index of the cell this slot is in

Public variable

int32

 

ColumnSpan

Public variable

TEnumAsByte< EH...

 

HorizontalAlignment

The alignment of the object horizontally.

Public variable

int32

 

Layer

Positive values offset this cell to be hit-tested and drawn on top of others.

Public variable

FVector2D

 

Nudge

Offset this slot's content by some amount; positive values offset to lower right

Public variable

FMargin

 

Padding

The padding area between the slot and the content it contains.

Public variable

int32

 

Row

The row index of the cell this slot is in

Public variable

int32

 

RowSpan

Public variable

TEnumAsByte< EV...

 

VerticalAlignment

The alignment of the object vertically.

Constructors

Name Description

Public function

UGridSlot

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

BuildSlot

(
    TSharedRef< SGridPanel > GridPanel
)

Builds the underlying FSlot for the Slate layout panel.

Public function

void

 

SetColumn

(
    int32 InColumn
)

Sets the column index of the slot, this determines what cell the slot is in the panel

Public function

void

 

SetColumnSpan

(
    int32 InColumnSpan
)

How many columns this slot spans over

Public function

void

 

SetHorizontalAlignment

(
    EHorizontalAlignment InHorizontalAl...
)

Public function

void

 

SetLayer

(
    int32 InLayer
)

Sets positive values offset this cell to be hit-tested and drawn on top of others.

Public function

void

 

SetNudge

(
    FVector2D InNudge
)

Sets the offset for this slot's content by some amount; positive values offset to lower right

Public function

void

 

SetPadding

(
    FMargin InPadding
)

Public function

void

 

SetRow

(
    int32 InRow
)

Sets the row index of the slot, this determines what cell the slot is in the panel

Public function

void

 

SetRowSpan

(
    int32 InRowSpan
)

How many rows this this slot spans over

Public function

void

 

SetVerticalAlignment

(
    EVerticalAlignment InVerticalAlignm...
)

Overridden from UPanelSlot

Name Description

Public function Virtual

void

 

SynchronizeProperties()

Applies all properties to the live slot if possible.

Overridden from UVisual

Name Description

Public function Virtual

void

 

ReleaseSlateResources

(
    bool bReleaseChildren
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss