Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SWeakWidget
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/SWeakWidget.h |
| Include | #include "Widgets/SWeakWidget.h" |
Syntax
class SWeakWidget : public SWidget
Remarks
Implements a widget that holds a weak pointer to one child widget.
Weak widgets encapsulate a piece of content without owning it. e.g. A tooltip is owned by the hovered widget but displayed by a floating window. That window cannot own the tooltip and must therefore use an SWeakWidget.
Constructors
| Type | Name | Description | |
|---|---|---|---|
SWeakWidget () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| void | Construct
(
const FArguments& InArgs |
||
| TWeakPtr< SWidget > | |||
| void | SetContent
(
const TSharedRef< SWidget >& InWidget |
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. | |
| 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. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |