FSlotBase

Slot are a container of a [SWidget](API\Runtime\SlateCore\Widgets\SWidget) used by the [FChildren](API\Runtime\SlateCore\Layout\FChildren).

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/SlotBase.h

Include

#include "SlotBase.h"

Syntax

class FSlotBase

Remarks

Slot are a container of a SWidget used by the FChildren.

Constructors

Name Description

Public function

FSlotBase()

Public function

FSlotBase

(
    const FChildren& InParent
)

Public function

FSlotBase

(
    const TSharedRef< SWidget >& InWid...
)

Public function

FSlotBase

(
    const FSlotBase&
)

Destructors

Name Description

Public function Virtual

~FSlotBase()

Functions

Name Description

Public function

void

 

AttachWidget

(
    const TSharedRef< SWidget >& InWid...
)

Attach the child widget the slot now owns.

Public function

const TShare...

 

DetachWidget()

Remove the widget from its current slot.

Public function Const

const FChild...

 

GetOwner()

Access the FChildren that own the slot.

Public function Const

SWidget *...

 

GetOwnerWidget()

Access the widget that own the slot. The owner can be invalid when the slot is not attached.

Public function Const

const TShare...

 

GetWidget()

Access the widget in the current slot.

Public function

void

 

Invalidate

(
    EInvalidateWidgetReason InvalidateR...
)

Invalidate the widget's owner.

Protected function

bool

 

SetAttribute

(
    TAttribute< TargetValueType >& Tar...,
    const TAttribute< SourceValueType >...,
    EInvalidateWidgetReason BaseInvalid...
)

Performs the attribute assignment and invalidates the widget minimally based on what actually changed.

Public function

void

 

SetOwner

(
    const FChildren& Children
)

Set the owner of the slot. Slots cannot be reassigned to different parents.

Operators

Name Description

Public function

FSlotBase &

 

operator=

(
    const FSlotBase&
)

Classes

Name

Description

Public struct

FSlotArguments

Deprecated Variables

Name Description

Protected variable

SWidget *

 

RawParentPtr

RawParentPtr is not used anymore. Use GetOwnerWidget.

Deprecated Functions

Name Description

Public function

void

 

AttachWidgetParent

(
    SWidget* InParent
)

AttachWidgetParent is not used anymore. Use get SetOwner.