Navigation
Unreal Engine C++ API Reference > Runtime > Slate > Widgets > SCanvas
Inheritance Hierarchy
- TWidgetSlotWithAttributeSupport
- TAlignmentWidgetSlotMixin
- SCanvas::FSlot
References
Module | Slate |
Header | /Engine/Source/Runtime/Slate/Public/Widgets/SCanvas.h |
Include | #include "Widgets/SCanvas.h" |
Syntax
class FSlot :
public TWidgetSlotWithAttributeSupport< FSlot >,
public TAlignmentWidgetSlotMixin< FSlot >
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
- + + | | | | | | | | | | | _ |
Note: FILL is NOT supported.
Vertical Alignment Given a left aligned slot, where '+' represents the anchor point defined by PositionAttr.
Top Center Bottom + | | | | | | | | + | | | | | + _ |
Note: FILL is NOT supported.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FSlot () |
Default values for a slot. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Construct
(
const FChildren& SlotOwner, |
|
![]() ![]() |
FVector2D | GetPosition () |
|
![]() ![]() |
FVector2D | GetSize () |
|
![]() ![]() |
void | RegisterAttributes
(
FSlateWidgetSlotAttributeInitializer& AttributeInitializer |
|
![]() |
void | SetPosition
(
TAttribute< FVector2D > InPosition |
|
![]() |
void | SetSize
(
TAttribute< FVector2D > InSize |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FSlotArguments |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TSlateDeprecatedTAttribute< FVector2D > | PositionAttr | Direct access to PositionAttr is now deprecated. Use the getter or setter. |
![]() |
TSlateDeprecatedTAttribute< FVector2D > | SizeAttr | Direct access to SizeAttr is now deprecated. Use the getter or setter. |