TSlot

A BoxPanel contains one BoxPanel child and describes how that child should be arranged on the screen.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SBoxPanel.h

Include

#include "Widgets/SBoxPanel.h"

Syntax

template<typename SlotType>
class TSlot : public TBasicLayoutWidgetSlot< SlotType >

Remarks

A BoxPanel contains one BoxPanel child and describes how that child should be arranged on the screen.

Constructors

Name Description

Protected function

TSlot()

Default values for a slot.

Functions

Name Description

Public function

void

 

Construct

(
    const FChildren& SlotOwner,
    FSlotArguments&& InArgs
)

Public function Const

float

 

GetMaxSize()

Get the max size the slot can be.

Public function Const

FSizeParam::...

 

GetSizeRule()

Get the space rule this slot should occupy along panel's direction.

Public function Const

float

 

GetSizeValue()

Get the space rule value this slot should occupy along panel's direction.

Public function Static

void

 

RegisterAttributes

Public function

void

 

SetMaxSize

(
    TAttribute< float > InMaxSize
)

Set the max size in SlateUnit this slot can be.

Public function

void

 

SetSizeParam

(
    FSizeParam InSizeParam
)

Set the size Param of the slot, It could be a FStretch or a FAuto.

Public function

void

 

SetSizeToAuto()

The widget's DesiredSize will be used as the space required.

Public function

void

 

SetSizeToStretch

(
    TAttribute< float > StretchCoeffici...
)

The available space will be distributed proportionately.

Classes

Name

Description

Public struct

FSlotArguments