Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SPanel
- SConstraintCanvas
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SConstraintCanvas.h |
| Include | #include "Widgets/Layout/SConstraintCanvas.h" |
Syntax
class SConstraintCanvas : public SPanel
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TPanelChildren< FSlot > | Children | The ConstraintCanvas widget's children. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FScopedWidgetSlotArguments | AddSlot () |
Adds a content slot. | |
| void | Removes all slots from the panel. | ||
| void | Construct
(
const FArguments& InArgs |
Construct this widget | |
| int32 | RemoveSlot
(
const TSharedRef< SWidget >& SlotWidget |
Removes a particular content slot. | |
| FSlot::FSlotArguments | Slot () |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float |
A Panel's desired size in the space required to arrange of its children on the screen while respecting all of the children's desired sizes and any layout-related options specified by the user. | |
| FChildren * | GetChildren () |
All widgets must provide a way to access their children in a layout-agnostic way. | |
| void | OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Panels arrange their children in a space described by the AllottedGeometry parameter. | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FSlot | ConstraintCanvas slots allow child widgets to be positioned and sized |
Typedefs
| Name | Description |
|---|---|
| FArrangedChildLayers | An array matching the length and order of ArrangedChildren. |
| FScopedWidgetSlotArguments |