FSlot

ConstraintCanvas slots allow child widgets to be positioned and sized

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FSlotBase

TSlotBase

SConstraintCanvas::FSlot

References

Module

Slate

Header

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

Include

#include "Widgets/Layout/SConstraintCanvas.h"

Syntax

class FSlot : public TSlotBase< FSlot >

Remarks

ConstraintCanvas slots allow child widgets to be positioned and sized

Constructors

Name Description

Public function

FSlot()

Default values for a slot.

Functions

Name Description

Public function

void

 

Construct

(
    const FChildren& SlotOwner,
    FSlotArguments&& InArgs
)

Public function Const

FVector2D

 

GetAlignment()

Public function Const

FAnchors

 

GetAnchors()

Public function Const

bool

 

GetAutoSize()

Public function Const

FMargin

 

GetOffset()

Public function Const

float

 

GetZOrder()

Public function

void

 

SetAlignment

(
    const TAttribute< FVector2D >& InA...
)

Public function

void

 

SetAnchors

(
    const TAttribute< FAnchors >& InAn...
)

Public function

void

 

SetAutoSize

(
    const TAttribute< bool >& InAutoSi...
)

Public function

void

 

SetOffset

(
    const TAttribute< FMargin >& InOff...
)

Public function

void

 

SetZOrder

(
    float InZOrder
)

Classes

Name

Description

Public struct

FSlotArguments

Deprecated Variables

Name Description

Public variable

TAttribute< FVe...

 

AlignmentAttr

Direct access to AlignmentAttr is now deprecated. Use the getter or setter.

Public variable

TAttribute< FAn...

 

AnchorsAttr

Direct access to AnchorsAttr is now deprecated. Use the getter or setter.

Public variable

TAttribute< boo...

 

AutoSizeAttr

Direct access to AutoSizeAttr is now deprecated. Use the getter or setter.

Public variable

TAttribute< FMa...

 

OffsetAttr

Direct access to OffsetAttr is now deprecated. Use the getter or setter.

Public variable

TAttribute< flo...

 

ZOrderAttr

Direct access to ZOrderAttr is now deprecated. Use the getter or setter.