FSlot

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FSlotBase

TSlotBase

SSplitter::FSlot

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SSplitter.h

Include

#include "Widgets/Layout/SSplitter.h"

Syntax

class FSlot : public TSlotBase< FSlot >

Constructors

Name Description

Public function

FSlot()

Functions

Name Description

Public function Const

bool

 

CanBeResized()

A slot can be resize if bIsResizable and the SizeRule is a FractionOfParent or the OnSlotResized delegate is set.

Public function

void

 

Construct

(
    const FChildren& SlotOwner,
    FSlotArguments&& InArgs
)

Public function Const

float

 

GetMinSize()

Public function Const

float

 

GetSizeValue()

Public function Const

ESizeRule

 

GetSizingRule()

Public function Const

bool

 

IsResizable()

Public function

FOnSlotResiz...

 

OnSlotResized()

Callback when the slot is resized.

Public function Const

const FOnSlo...

 

OnSlotResized()

Public function

void

 

SetMinSize

(
    float InMinSize
)

Minimum slot size when resizing.

Public function

void

 

SetResizable

(
    bool bInIsResizable
)

Can the slot be resize by the user.

Public function

void

 

SetSizeValue

(
    TAttribute< float > InValue
)

When the RuleSize is set to FractionOfParent, the size of the slot is the Value percentage of its parent size.

Public function

void

 

SetSizingRule

(
    TAttribute< ESizeRule > InSizeRule
)

The size rule used by the slot.

Classes

Name

Description

Public struct

FSlotArguments

Deprecated Variables

Name Description

Public variable

TOptional< bool...

 

bIsResizable

Direct access to bIsResizable is now deprecated. Use the getter.

Public variable

TAttribute< flo...

 

MinSizeValue

Direct access to MinSizeValue is now deprecated. Use the getter.

Public variable

FOnSlotResized

 

OnSlotResized_Handler

Direct access to OnSlotResized_Handler is now deprecated. Use the getter.

Public variable

TAttribute< flo...

 

SizeValue

Direct access to SizeValue is now deprecated. Use the getter.

Public variable

TAttribute< ESi...

 

SizingRule

Direct access to SizingRule is now deprecated. Use the getter.