Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/SCanvas.h |
Include |
#include "Widgets/SCanvas.h" |
class SCanvas : public SPanel
Canvas is a layout widget that allows you to arbitrary position and size child widgets in a relative coordinate space
Name | Description | ||
---|---|---|---|
|
TPanelChildren<... |
Children |
The canvas widget's children. |
Name | Description | |
---|---|---|
|
SCanvas() |
Name | Description | ||
---|---|---|---|
|
FSlot & |
AddSlot() |
Adds a content slot. |
|
ClearChildren() |
Removes all slots from the panel. |
|
|
Construct ( |
Construct this widget |
|
|
RemoveSlot ( |
Removes a particular content slot. |
|
|
FSlot & |
Slot() |
Name | Description | ||
---|---|---|---|
|
ComputeDesiredSize ( |
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. |
|
OnArrangeChildren ( |
Panels arrange their children in a space described by the AllottedGeometry parameter. |
|
|
OnPaint ( |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
Name |
Description |
|
---|---|---|
|
FArguments |
|
|
FSlot |
Canvas slots allow child widgets to be positioned and sized |