UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SGridPanel::FSlot Class Reference

#include <SGridPanel.h>

+ Inheritance diagram for SGridPanel::FSlot:

Public Member Functions

 FSlot (int32 Column, int32 Row, int32 InLayer)
 
SLATE_API void Construct (const FChildren &SlotOwner, FSlotArguments &&InArgs)
 
int32 GetColumn () const
 
void SetColumn (int32 Column)
 
int32 GetColumnSpan () const
 
void SetColumnSpan (int32 ColumnSpan)
 
int32 GetRow () const
 
void SetRow (int32 Row)
 
int32 GetRowSpan () const
 
void SetRowSpan (int32 RowSpan)
 
int32 GetLayer () const
 
void SetLayer (int32 Layer)
 
FVector2D GetNudge () const
 
void SetNudge (const FVector2D &Nudge)
 
- Public Member Functions inherited from TBasicLayoutWidgetSlot< FSlot >
 TBasicLayoutWidgetSlot ()
 
 TBasicLayoutWidgetSlot (FChildren &InOwner)
 
 TBasicLayoutWidgetSlot (const EHorizontalAlignment InHAlign, const EVerticalAlignment InVAlign)
 
 TBasicLayoutWidgetSlot (FChildren &InOwner, const EHorizontalAlignment InHAlign, const EVerticalAlignment InVAlign)
 
 SLATE_SLOT_BEGIN_ARGS_TwoMixins (TBasicLayoutWidgetSlot, TSlotBase< FSlot >, TPaddingWidgetSlotMixin< FSlot >, TAlignmentWidgetSlotMixin< FSlot >) void Construct(const FChildren &SlotOwner
 
 TPaddingWidgetSlotMixin (SlotOwner, MoveTemp(InArgs))
 
 TAlignmentWidgetSlotMixin (SlotOwner, MoveTemp(InArgs))
 
- Public Member Functions inherited from TWidgetSlotWithAttributeSupport< SlotType >
virtual ~TWidgetSlotWithAttributeSupport ()
 
void Construct (const FChildren &SlotOwner, typename Super::FSlotArguments &&InArgs)
 
void RequestSortAttribute ()
 
virtual SWidgetGetContainerWidget () const override
 
virtual FName GetContainerName () const override
 
virtual uint32 GetContainerSortOrder () const override
 
- Public Member Functions inherited from TSlotBase< SlotType >
SlotType & operator[] (TSharedRef< SWidget > &&InChildWidget)
 
SlotType & operator[] (const TSharedRef< SWidget > &InChildWidget)
 
SlotType & Expose (SlotType *&OutVarToInit)
 
void Construct (const FChildren &SlotOwner, FSlotArguments &&InArgs)
 
SLATECORE_API FSlotBase ()
 
SLATECORE_API FSlotBase (const FChildren &InParent)
 
SLATECORE_API FSlotBase (const TSharedRef< SWidget > &InWidget)
 
 FSlotBase (const FSlotBase &)=delete
 
- Public Member Functions inherited from FSlotBase
SLATECORE_API FSlotBase ()
 
SLATECORE_API FSlotBase (const FChildren &InParent)
 
SLATECORE_API FSlotBase (const TSharedRef< SWidget > &InWidget)
 
FSlotBaseoperator= (const FSlotBase &)=delete
 
 FSlotBase (const FSlotBase &)=delete
 
virtual SLATECORE_API ~FSlotBase ()
 
const FChildrenGetOwner () const
 
SLATECORE_API SWidgetGetOwnerWidget () const
 
SLATECORE_API void SetOwner (const FChildren &Children)
 
void AttachWidget (TSharedRef< SWidget > &&InWidget)
 
void AttachWidget (const TSharedRef< SWidget > &InWidget)
 
const TSharedRef< SWidget > & GetWidget () const
 
SLATECORE_API const TSharedPtr< SWidgetDetachWidget ()
 
SLATECORE_API void Invalidate (EInvalidateWidgetReason InvalidateReason)
 
- Public Member Functions inherited from TPaddingWidgetSlotMixin< MixedIntoType >
 TPaddingWidgetSlotMixin ()
 
 TPaddingWidgetSlotMixin (const FMargin &Margin)
 
void SetPadding (TAttribute< FMargin > InPadding)
 
FMargin GetPadding () const
 
- Public Member Functions inherited from TAlignmentWidgetSlotMixin< MixedIntoType >
 TAlignmentWidgetSlotMixin ()
 
 TAlignmentWidgetSlotMixin (const EHorizontalAlignment InHAlign, const EVerticalAlignment InVAlign)
 
void SetHorizontalAlignment (EHorizontalAlignment Alignment)
 
EHorizontalAlignment GetHorizontalAlignment () const
 
void SetVerticalAlignment (EVerticalAlignment Alignment)
 
EVerticalAlignment GetVerticalAlignment () const
 

Additional Inherited Members

- Public Types inherited from TSlotBase< SlotType >
enum  EConstructSlotIsFChildren { ConstructSlotIsFChildren }
 
- Static Public Member Functions inherited from TBasicLayoutWidgetSlot< FSlot >
static void RegisterAttributes (FSlateWidgetSlotAttributeInitializer &AttributeInitializer)
 
- Static Public Member Functions inherited from TWidgetSlotWithAttributeSupport< SlotType >
static void RegisterAttributes (FSlateWidgetSlotAttributeInitializer &AttributeInitializer)
 
- Public Attributes inherited from TBasicLayoutWidgetSlot< FSlot >
FSlotArguments && InArgs
 
- Protected Member Functions inherited from FSlotBase
template<typename TargetValueType , typename SourceValueType >
bool SetAttribute (TAttribute< TargetValueType > &TargetValue, const TAttribute< SourceValueType > &SourceValue, EInvalidateWidgetReason BaseInvalidationReason)
 
- Protected Member Functions inherited from SlateAttributePrivate::ISlateAttributeContainer
SLATECORE_API void RemoveContainerWidget (SWidget &Widget)
 
SLATECORE_API void UpdateContainerSortOrder (SWidget &Widget)
 
- Protected Member Functions inherited from TPaddingWidgetSlotMixin< MixedIntoType >
void ConstructMixin (const FChildren &SlotOwner, FSlotArgumentsMixin &&InArgs)
 
- Protected Member Functions inherited from TAlignmentWidgetSlotMixin< MixedIntoType >
void ConstructMixin (const FChildren &SlotOwner, FSlotArgumentsMixin &&InArgs)
 
- Static Protected Member Functions inherited from TPaddingWidgetSlotMixin< MixedIntoType >
static void RegisterAttributesMixin (FSlateWidgetSlotAttributeInitializer &AttributeInitializer)
 

Constructor & Destructor Documentation

◆ FSlot()

SGridPanel::FSlot::FSlot ( int32  Column,
int32  Row,
int32  InLayer 
)
inline

Default values for a slot.

Member Function Documentation

◆ Construct()

void SGridPanel::FSlot::Construct ( const FChildren SlotOwner,
FSlotArguments &&  InArgs 
)

Which column in the grid this cell belongs to How many columns this slot spans over Which row in the grid this cell belongs to How many rows this this slot spans over Positive values offset this cell to be hit-tested and drawn on top of others. Default is 0; i.e. no offset. Offset this slot's content by some amount; positive values offset to lower right

◆ GetColumn()

int32 SGridPanel::FSlot::GetColumn ( ) const
inline

Which column in the grid this cell belongs to

◆ GetColumnSpan()

int32 SGridPanel::FSlot::GetColumnSpan ( ) const
inline

How many columns this slot spans over

◆ GetLayer()

int32 SGridPanel::FSlot::GetLayer ( ) const
inline

Positive values offset this cell to be hit-tested and drawn on top of others. Default is 0; i.e. no offset.

◆ GetNudge()

FVector2D SGridPanel::FSlot::GetNudge ( ) const
inline

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

◆ GetRow()

int32 SGridPanel::FSlot::GetRow ( ) const
inline

Which row in the grid this cell belongs to

◆ GetRowSpan()

int32 SGridPanel::FSlot::GetRowSpan ( ) const
inline

How many rows this this slot spans over

◆ SetColumn()

void SGridPanel::FSlot::SetColumn ( int32  Column)
inline

◆ SetColumnSpan()

void SGridPanel::FSlot::SetColumnSpan ( int32  ColumnSpan)
inline

◆ SetLayer()

void SGridPanel::FSlot::SetLayer ( int32  Layer)
inline

◆ SetNudge()

void SGridPanel::FSlot::SetNudge ( const FVector2D Nudge)
inline

◆ SetRow()

void SGridPanel::FSlot::SetRow ( int32  Row)
inline

◆ SetRowSpan()

void SGridPanel::FSlot::SetRowSpan ( int32  RowSpan)
inline

The documentation for this class was generated from the following files: