FSlot

Canvas slots allow child widgets to be positioned and sized

Windows
MacOS
Linux

Inheritance Hierarchy

FSlotBase

TSlotBase

SCanvas::FSlot

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/SCanvas.h

Include

#include "Widgets/SCanvas.h"

Syntax

class FSlot : public TSlotBase< FSlot >

Remarks

Canvas slots allow child widgets to be positioned and sized

Variables

Name Description

Public variable

EHorizontalAlig...

 

HAlignment

Horizontal Alignment Given a top aligned slot, where '+' represents the anchor point defined by PositionAttr.

Public variable

TAttribute< FVe...

 

PositionAttr

Position

Public variable

TAttribute< FVe...

 

SizeAttr

Size

Public variable

EVerticalAlignm...

 

VAlignment

Vertical Alignment Given a left aligned slot, where '+' represents the anchor point defined by PositionAttr.

Constructors

Name Description

Public function

FSlot()

Default values for a slot.

Functions

Name Description

Public function

FSlot &

 

HAlign

(
    EHorizontalAlignment InHAlignment
)

Public function

FSlot &

 

Position

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

Public function

FSlot &

 

Size

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

Public function

FSlot &

 

VAlign

(
    EVerticalAlignment InVAlignment
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss