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

#include <SConstraintCanvas.h>

+ Inheritance diagram for SConstraintCanvas::FSlot:

Public Member Functions

 FSlot ()
 
UE_API void Construct (const FChildren &SlotOwner, FSlotArguments &&InArgs)
 
void SetOffset (const TAttribute< FMargin > &InOffset)
 
FMargin GetOffset () const
 
void SetAnchors (const TAttribute< FAnchors > &InAnchors)
 
FAnchors GetAnchors () const
 
void SetAlignment (const TAttribute< FVector2D > &InAlignment)
 
FVector2D GetAlignment () const
 
void SetAutoSize (const TAttribute< bool > &InAutoSize)
 
bool GetAutoSize () const
 
UE_API void SetZOrder (float InZOrder)
 
float GetZOrder () const
 
- Public Member Functions inherited from TSlotBase< FSlot >
FSlot & operator[] (TSharedRef< SWidget > &&InChildWidget)
 
FSlot & operator[] (const TSharedRef< SWidget > &InChildWidget)
 
FSlot & Expose (FSlot *&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)
 

Additional Inherited Members

- Public Types inherited from TSlotBase< FSlot >
enum  EConstructSlotIsFChildren
 
- Protected Member Functions inherited from FSlotBase
template<typename TargetValueType , typename SourceValueType >
bool SetAttribute (TAttribute< TargetValueType > &TargetValue, const TAttribute< SourceValueType > &SourceValue, EInvalidateWidgetReason BaseInvalidationReason)
 

Detailed Description

ConstraintCanvas slots allow child widgets to be positioned and sized

Constructor & Destructor Documentation

◆ FSlot()

SConstraintCanvas::FSlot::FSlot ( )
inline

Default values for a slot.

Member Function Documentation

◆ Construct()

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

◆ GetAlignment()

FVector2D SConstraintCanvas::FSlot::GetAlignment ( ) const
inline

◆ GetAnchors()

FAnchors SConstraintCanvas::FSlot::GetAnchors ( ) const
inline

◆ GetAutoSize()

bool SConstraintCanvas::FSlot::GetAutoSize ( ) const
inline

◆ GetOffset()

FMargin SConstraintCanvas::FSlot::GetOffset ( ) const
inline

◆ GetZOrder()

float SConstraintCanvas::FSlot::GetZOrder ( ) const
inline

◆ SetAlignment()

void SConstraintCanvas::FSlot::SetAlignment ( const TAttribute< FVector2D > &  InAlignment)
inline

◆ SetAnchors()

void SConstraintCanvas::FSlot::SetAnchors ( const TAttribute< FAnchors > &  InAnchors)
inline

◆ SetAutoSize()

void SConstraintCanvas::FSlot::SetAutoSize ( const TAttribute< bool > &  InAutoSize)
inline

◆ SetOffset()

void SConstraintCanvas::FSlot::SetOffset ( const TAttribute< FMargin > &  InOffset)
inline

◆ SetZOrder()

void SConstraintCanvas::FSlot::SetZOrder ( float  InZOrder)

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