Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/SConstraintCanvas
ConstraintCanvas slots allow child widgets to be positioned and sized
| Name | FSlot |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SConstraintCanvas.h |
| Include Path | #include "Widgets/Layout/SConstraintCanvas.h" |
Syntax
class FSlot : public TSlotBase< FSlot >
Inheritance Hierarchy
- FSlotPosition → FSlotBase → TSlotBase → SConstraintCanvas::FSlot
- FSlotBase → TSlotBase → SConstraintCanvas::FSlot
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlot() |
Default values for a slot. | Widgets/Layout/SConstraintCanvas.h |
Structs
| Name | Remarks |
|---|---|
| FSlotArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AlignmentAttr | TAttribute< FVector2D > | Size | Widgets/Layout/SConstraintCanvas.h | |
| AnchorsAttr | TAttribute< FAnchors > | Anchors | Widgets/Layout/SConstraintCanvas.h | |
| AutoSizeAttr | TAttribute< bool > | Auto-Size | Widgets/Layout/SConstraintCanvas.h | |
| OffsetAttr | TAttribute< FMargin > | Offset | Widgets/Layout/SConstraintCanvas.h | |
| ZOrder | float | Z-Order | Widgets/Layout/SConstraintCanvas.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FChildren& SlotOwner, |
Widgets/Layout/SConstraintCanvas.h | ||
FVector2D GetAlignment() |
Widgets/Layout/SConstraintCanvas.h | ||
FAnchors GetAnchors() |
Widgets/Layout/SConstraintCanvas.h | ||
bool GetAutoSize() |
Widgets/Layout/SConstraintCanvas.h | ||
FMargin GetOffset() |
Widgets/Layout/SConstraintCanvas.h | ||
float GetZOrder() |
Widgets/Layout/SConstraintCanvas.h | ||
void SetAlignment
(
const TAttribute< FVector2D >& InAlignment |
Widgets/Layout/SConstraintCanvas.h | ||
void SetAnchors
(
const TAttribute< FAnchors >& InAnchors |
Widgets/Layout/SConstraintCanvas.h | ||
void SetAutoSize
(
const TAttribute< bool >& InAutoSize |
Widgets/Layout/SConstraintCanvas.h | ||
void SetOffset
(
const TAttribute< FMargin >& InOffset |
Widgets/Layout/SConstraintCanvas.h | ||
void SetZOrder
(
float InZOrder |
Widgets/Layout/SConstraintCanvas.h |