Navigation
API > API/Runtime > API/Runtime/Slate
ConstraintCanvas is a layout widget that allows you to arbitrary position and size child widgets in a relative coordinate space. Additionally it permits anchoring widgets.
| Name | SConstraintCanvas |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SConstraintCanvas.h |
| Include Path | #include "Widgets/Layout/SConstraintCanvas.h" |
Syntax
class SConstraintCanvas : public SPanel
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SPanel → SConstraintCanvas
- FSlateControlledConstruction → SWidget → SPanel → SConstraintCanvas
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SConstraintCanvas() |
Widgets/Layout/SConstraintCanvas.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~SConstraintCanvas() |
Widgets/Layout/SConstraintCanvas.h |
Classes
| Name | Remarks |
|---|---|
| FSlot | ConstraintCanvas slots allow child widgets to be positioned and sized |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FArrangedChildLayers | TArray< bool, TInlineAllocator< 16 > > | An array matching the length and order of ArrangedChildren. | Widgets/Layout/SConstraintCanvas.h |
| FScopedWidgetSlotArguments | TPanelChildren< FSlot >::FScopedWidgetSlotArguments | Widgets/Layout/SConstraintCanvas.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FScopedWidgetSlotArguments AddSlot() |
Adds a content slot. | Widgets/Layout/SConstraintCanvas.h | |
void ClearChildren() |
Removes all slots from the panel. | Widgets/Layout/SConstraintCanvas.h | |
void Construct
(
const FArguments& InArgs |
Construct this widget | Widgets/Layout/SConstraintCanvas.h | |
int32 RemoveSlot
(
const TSharedRef< SWidget >& SlotWidget |
Removes a particular content slot. | Widgets/Layout/SConstraintCanvas.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FChildren * GetChildren() |
Widgets/Layout/SConstraintCanvas.h | ||
virtual void OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Widgets/Layout/SConstraintCanvas.h | ||
virtual int32 OnPaint
(
const FPaintArgs& Args, |
Widgets/Layout/SConstraintCanvas.h |
Protected
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector2D ComputeDesiredSize
(
float |
Widgets/Layout/SConstraintCanvas.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FSlot::FSlotArguments Slot() |
Widgets/Layout/SConstraintCanvas.h |