Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Widgets
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- IMultiReplicationStreamEditor
- IPinnedCommandList
- IReplicationStreamViewer
- IReplicationStreamEditor
- IRewindDebuggerView
- ISocketManager
- SAppIconWidget
- SBasicFilterBar
- SBonePairRow::SSkeletonWidget
- SColorTrash
- SCurvePickerWidget
- SDMXPixelMappingScreenLayout
- SDraggableBoxOverlay
- SGenericDialogWidget
- SIKRigHierarchyItem
- SItemSelector
- SMultiBlockBaseWidget
- SNiagaraAssetBrowser
- SNiagaraAssetTag
- SNiagaraGraphActionWidget
- SNiagaraHierarchyCategory
- SNiagaraHierarchySection
- SNiagaraParameterMenu
- SNiagaraAddParameterFromPinMenu
- SNiagaraParameterName
- SNiagaraPinTypeSelector
- SNiagaraTemplateTabBox
- SNotificationItem
- SScrollBox
- STableViewBase
- SListView
- SAssetColumnView
- SAssetListView
- SCommonListView
- SMLDeformerCurvePickerListView
- SMLDeformerInputCurveListWidget
- STextureGraphInsightBatchInspectorView
- STextureGraphInsightBatchJobView
- STextureGraphInsightBlobInspectorView
- STextureGraphInsightDeviceListView
- STextureHistogram
- STextureHistogramBars
- SThrobber
- SUserWidget
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Widgets/SCompoundWidget.h |
| Include | #include "Widgets/SCompoundWidget.h" |
Syntax
class SCompoundWidget : public SWidget
Remarks
A CompoundWidget is the base from which most non-primitive widgets should be built. CompoundWidgets have a protected member named ChildSlot.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FCompoundWidgetOneChildSlot | ChildSlot | The slot that contains this widget's descendants. | |
| TSlateDeprecatedTAttribute< FLinearColor > | ColorAndOpacity | ||
| TSlateDeprecatedTAttribute< FVector2D > | ContentScale | ||
| TSlateDeprecatedTAttribute< FSlateColor > | ForegroundColor |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Disallow public construction |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FLinearColor | Gets the widget's color. | ||
| TSlateAttributeRef< FLinearColor > | |||
| const FVector2D | Returns the size scaling factor for this widget. | ||
| TSlateAttributeRef< FVector2D > | |||
| TSlateAttributeRef< FSlateColor > | |||
| void | SetColorAndOpacity
(
TAttribute< FLinearColor > InColorAndOpacity |
Sets the widget's color. | |
| void | SetContentScale
(
TAttribute< FVector2D > InContentScale |
Sets the content scale for this widget. | |
| void | SetForegroundColor
(
TAttribute< FSlateColor > InForegroundColor |
Sets the widget's foreground color. | |
| const FSlateWidgetClassData & |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float LayoutScaleMultiplier |
Compute the ideal size necessary to display this widget. | |
| FChildren * | GetChildren () |
Returns the useful children (if any) of this widget. | |
| FSlateColor | |||
| void | OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Compute the Geometry of all the children and add populate the ArrangedChildren list with their values. | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. | |
| void | SetVisibility
(
TAttribute< EVisibility > InVisibility |
Overridden from FSlateControlledConstruction
| Type | Name | Description | |
|---|---|---|---|
| const FSlateWidgetClassData & |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FCompoundWidgetOneChildSlot |
Typedefs
| Name | Description |
|---|---|
| PrivateParentType | |
| PrivateThisType | |
| Super | |
| ThisClass |