Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Widgets/SCompoundWidget.h |
Include |
#include "Widgets/SCompoundWidget.h" |
class SCompoundWidget : public SWidget
A CompoundWidget is the base from which most non-primitive widgets should be built. CompoundWidgets have a protected member named ChildSlot.
Name | Description | ||
---|---|---|---|
|
ChildSlot |
The slot that contains this widget's descendants. |
|
|
TAttribute< FLi... |
ColorAndOpacity |
The color and opacity to apply to this widget and all its descendants. |
|
TAttribute< FVe... |
ContentScale |
The layout scale to apply to this widget's contents; useful for animation. |
|
TAttribute< FSl... |
ForegroundColor |
Optional foreground color that will be inherited by all of this widget's contents |
Name | Description | |
---|---|---|
|
SCompoundWidget() |
Disallow public construction |
Name | Description | ||
---|---|---|---|
|
GetColorAndOpacity() |
Gets the widget's color. |
|
|
const FVecto... |
GetContentScale() |
Returns the size scaling factor for this widget. |
|
SetColorAndOpacity ( |
Sets the widget's color. |
|
|
SetContentScale ( |
Sets the content scale for this widget. |
|
|
SetForegroundColor ( |
Sets the widget's foreground color. |
Name | Description | ||
---|---|---|---|
|
ComputeDesiredSize ( |
Compute the ideal size necessary to display this widget. |
|
|
FChildren &#... |
GetChildren() |
Every widget that has children must implement this method. |
|
GetForegroundColor() |
||
|
OnArrangeChildren ( |
Compute the Geometry of all the children and add populate the ArrangedChildren list with their values. |
|
|
OnPaint ( |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
|
|
SetVisibility ( |