FSlot

Canvas slots allow child widgets to be positioned and sized

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Slate

Header

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

Include

#include "Widgets/SCanvas.h"

Syntax

Remarks

Canvas slots allow child widgets to be positioned and sized

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

Left Center Right

  • + + | | | | | | | | | | | _ |

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

Top Center Bottom + | | | | | | | | + | | | | | + _ |

FILL is NOT supported.

Constructors

Name Description

Public function

FSlot()

Default values for a slot.

Functions

Name Description

Public function

void

 

Construct

(
    const FChildren& SlotOwner,
    FSlotArguments&& InArg
)

Public function Const

FVector2D

 

GetPosition()

Public function Const

FVector2D

 

GetSize()

Public function Static

void

 

RegisterAttributes

Public function

void

 

SetPosition

(
    TAttribute< FVector2D > InPosition
)

Public function

void

 

SetSize

(
    TAttribute< FVector2D > InSize
)

Classes

Name

Description

Public struct

FSlotArguments

Deprecated Variables

Name Description

Public variable

TSlateDeprecate...

 

PositionAttr

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

Public variable

TSlateDeprecate...

 

SizeAttr

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