Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets
Inheritance Hierarchy
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/SCanvas.h |
| Include | #include "Widgets/SCanvas.h" |
Syntax
class SCanvas : public SPanel
Remarks
Canvas is a layout widget that allows you to arbitrary position and size child widgets in a relative coordinate space
Variables
| Type | Name | Description | |
|---|---|---|---|
| TPanelChildren< FSlot > | Children | The canvas widget's children. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
SCanvas () |
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 () |
||
| const FSlateWidgetClassData & |
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. |
Overridden from FSlateControlledConstruction
| Type | Name | Description | |
|---|---|---|---|
| const FSlateWidgetClassData & |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FSlot | Canvas slots allow child widgets to be positioned and sized |
Typedefs
| Name | Description |
|---|---|
| FScopedWidgetSlotArguments | |
| PrivateParentType | |
| PrivateThisType | |
| Super | |
| ThisClass |