SCompoundWidget

Inheritance Hierarchy

FSlateControlledConstruction

TSharedFromThis

SWidget

SCompoundWidget

IAnimationSequenceBrowser

IDetailsView

IDistributionCurveEditor

ILevelEditor

IObjectNameEditableTextBox

IPersonaViewport

IPinnedCommandList

ISceneOutliner

SSceneOutliner

ISinglePropertyView

ISkeletonTree

ISocketManager

IStatsViewer

ITimeSlider

ITransportControl

SAboutScreen

SAdvancedPreviewDetailsTab

SAnimationCompressionPanel

SAnimationRemapAssets

SAnimationRemapSkeleton

SAppIconWidget

SAssetSearchBox

SBackgroundBlur

SBarVisualizer

SBlueprintDiff

SBlueprintRevisionMenu

SBoneMappingBase

SBoneSelectionWidget

SBoneTreeMenu

SBorder

SBuildProgressWidget

SButton

SHyperlink

SRichTextHyperlink

SCarouselNavigationButton::SPeekBorder

SDockTab

SLiveLinkCurveDebugUITab

SEditableTextBox

SSearchBox

SErrorText

SExpandableButton

SGraphEditorActionMenu

SGraphEditorActionMenuAI

SGraphPin

SGraphPinAI

SGraphPinBool

SGraphPinColor

SGraphPinExec

SGraphPinNameList

SGraphPinDataTableRowName

SGraphPinNum

SGraphPinInteger

SGraphPinObject

SGraphPinClass

SGraphPinString

SGraphPinVector

SGraphPinVector2D

SGraphPinVector4

SHeaderRow

SMultiLineEditableTextBox

SScrollBar

SSeparator

STableRow

SComboRow

SMultiColumnTableRow

SAssetEntryRow

SBoneMappingListRow

SBonePairRow

SEventItem

SLiveLinkCurveDebugUIListItem

SOptionTableRow

SSceneOutlinerTreeRow

SSCS_RowWidget

SSCS_RowWidget_ActorRoot

SSCS_RowWidget_Separator

SMultiSelectTableRow

SBreadcrumbTrail

SCarouselNavigationBar

SCarouselNavigationButton

SCheckBox

SClassPickerDialog

SClassPropertyEntryBox

SColorGradingPicker

SColorPicker

SColorThemeBar

SColorThemesViewer

SColorTrash

SCommentBubble

SComplexGradient

SContentReference

SCreateAssetFromObject

SCreateClothingSettingsPanel

SCreditsScreen

SCSVImportOptions

SCulturePicker

SCurveEditor

SCurveEditorPanel

SDecoratedEnumCombo

SDefaultGraphActionWidget

SDeleteAssetsDialog

SDirectoryPicker

SDocumentationToolTip

SDropTarget

SAssetDropTarget

SEditableComboBox

SEditorViewport

SBasePoseViewport

SLevelViewport

SEditorViewportToolBarButton

SEditorViewportToolbarMenu

SEditorViewportViewMenu

SErrorHint

SEventsTree

SExpandableArea

SExpanderArrow

SExternalImageReference

SFilePathPicker

SFilterableObjectList

SFindInBlueprints

SFindInMaterial

SFrameRateEntryBox

SFrameRatePicker

SFxWidget

SGameLayerManager

SGenericDialogWidget

SGlobalPlayWorldActions

SGraphActionMenu

SGraphEditor

SGraphPalette

SGraphPaletteItem

SGraphPreviewer

SHyperlinkLaunchURL

SInlineEditableTextBlock

SInputKeySelector

SInvalidationPanel

SKeyEditInterface

SKeySelector

SKismetInspector

SKismetLinearExpression

SLayerHandle

SLevelOfDetailBranchNode

SListViewSelectorDropdownMenu

SLogWidget

SMaterialSlotWidget

SMatineeRecorder

SMediaImage

SMediaPermutationsSelector

SMenuOwner

SMultiBoxWidget

SMiniCurveEditor

SModeWidget

SMultiBlockBaseWidget

SToolBarButtonBlock

SToolBarComboButtonBlock

SMultipleOptionTable

SNameComboBox

SNiagaraParameterEditor

SNodeTitle

SNotificationItem

SNotificationList

SNumericDropDown

SNumericEntryBox

SObjectPropertyEntryBox

SObjectWidget

SObjectTableRow

SOutputLogDialog

SPerPlatformPropertiesWidget

SPinComboBox

SPinTypeSelector

SPlatformSetupMessage

SPListEditorPanel

SPopup

SPoseAssetNameWidget

SProperty

SReferenceTree

SRemapFailures

SResetToDefaultMenu

SRetainerWidget

SRotatorInputBox

SScalabilitySettings

SScaleBox

SScrollBorder

SScrollBox

SScrubControlPanel

SScrubWidget

SSCSEditor

SSettingsEditorCheckoutNotice

SSimpleGradient

SSimplePreLoadScreenWidget

SSingleObjectDetailsPanel

SSkeletonBoneRemoval

SSkeletonSelectorWindow

SSkeletonWidget

SSkeletonCompareWidget

SSkeletonListWidget

SSpinBox

SSubMenuHandler

SSuggestionTextBox

STableViewBase

SListView

STileView

STreeView

SOutlinerTreeView

SSCSEditorDragDropTree

STextComboBox

STextComboPopup

STextEntryPopup

STextPropertyEditableStringTableReference

STextPropertyEditableTextBox

SThemeColorBlock

SThrobber

STimecodeProvider

STimeline

SToolTip

SUndoHistoryDetails

SUserWidget

SLiveLinkCurveDebugUI

SVectorInputBox

SViewport

SViewportToolBar

SCommonEditorViewportToolbarBase

STransformViewportToolBar

SViewportToolBarComboMenu

SViewportToolBarIconMenu

SVolumeControl

SVPBookmarkListView

SWebBrowser

SWebBrowserView

SWidgetCarousel

SWidgetCarouselWithNavigation

SWindow

SCreateAnimationAssetDlg

SDlgPickAssetPath

SDlgPickPath

SLogWindow

SSelectFolderDlg

SVirtualWindow

SWindowTitleBar

SWizard

SWorldWidgetScreenLayer

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

Name Description

Protected variable

FSimpleSlot

 

ChildSlot

The slot that contains this widget's descendants.

Protected variable

TAttribute < FLi ...

 

ColorAndOpacity

The color and opacity to apply to this widget and all its descendants.

Protected variable

TAttribute < FVe ...

 

ContentScale

The layout scale to apply to this widget's contents; useful for animation.

Protected variable

TAttribute < FSl ...

 

ForegroundColor

Optional foreground color that will be inherited by all of this widget's contents

Constructors

Name Description

Protected function

SCompoundWidget()

Disallow public construction

Functions

Name Description

Public function Const

FLinearColor

 

GetColorAndOpacity()

Gets the widget's color.

Public function Const

const FVecto ...

 

GetContentScale()

Returns the size scaling factor for this widget.

Public function

void

 

SetColorAndOpacity

(
    const TAttribute < FLinearColor >& ...
)

Sets the widget's color.

Public function

void

 

SetContentScale

(
    const TAttribute < FVector2D >& InC...
)

Sets the content scale for this widget.

Public function

void

 

SetForegroundColor

(
    const TAttribute < FSlateColor >& I...
)

Sets the widget's foreground color.

Overridden from SWidget

Name Description

Protected function Virtual Const

FVector2D

 

ComputeDesiredSize

(
    float LayoutScaleMultiplier
)

Compute the ideal size necessary to display this widget.

Public function Virtual

FChildren &#...

 

GetChildren()

Every widget that has children must implement this method.

Public function Virtual Const

FSlateColor

 

GetForegroundColor()

Public function Virtual Const

void

 

OnArrangeChildren

(
    const FGeometry & AllottedGeometry,
    FArrangedChildren & ArrangedChildre...
)

Compute the Geometry of all the children and add populate the ArrangedChildren list with their values.

Public function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs & Args,
    const FGeometry & AllottedGeometry,
    const FSlateRect & MyCullingRect,
    FSlateWindowElementList & OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle & InWidgetStyle,
    bool bParentEnabled
)

The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children.

Public function Virtual

void

 

SetVisibility

(
    TAttribute < EVisibility > InVisibil...
)

References

Module

SlateCore

Header

Runtime/SlateCore/Public/Widgets/SCompoundWidget.h