Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Widgets/SOverlay.h |
Include |
#include "Widgets/SOverlay.h" |
class SOverlay : public SPanel
Implements an overlay widget.
Overlay widgets allow for layering several widgets on top of each other. Each slot of an overlay represents a layer that can contain one widget. The slots will be rendered on top of each other in the order they are declared in code.
Usage: SNew(SOverlay)
SOverlay::Slot(SNew(SMyWidget1))
SOverlay::Slot(SNew(SMyWidget2))
SOverlay::Slot(SNew(SMyWidget3))
that SWidget3 will be drawn on top of SWidget2 and SWidget1.
Name | Description | ||
---|---|---|---|
|
TPanelChildren<... |
Children |
The SOverlay's slots; each slot contains a child widget. |
Name | Description | |
---|---|---|
|
SOverlay() |
Name | Description | ||
---|---|---|---|
|
FScopedWidge... |
AddSlot ( |
Adds a slot at the specified location (ignores Z-order) |
|
ClearChildren() |
Removes all children from the overlay |
|
|
Construct ( |
Construct this widget. |
|
|
GetNumWidgets() |
Returns the number of child widgets |
|
|
RemoveSlot ( |
Removes a widget from this overlay. |
|
|
RemoveSlot ( |
Removes a slot at the specified location |
|
|
FOverlaySlot... |
Slot() |
|
|
const FSlate... |
StaticWidgetClass() |
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 | ||
---|---|---|---|
|
const FSlate... |
GetWidgetClass() |
Name |
Description |
|
---|---|---|
|
FArguments |
|
|
FOverlaySlot |
A slot that support alignment of content and padding and z-order |
Name |
Description |
---|---|
FScopedWidgetSlotArguments |
|
PrivateParentType |
|
PrivateThisType |
|
Super |
|
ThisClass |