Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Widgets/SPanel.h |
Include |
#include "Widgets/SPanel.h" |
class SPanel : public SWidget
A Panel arranges its child widgets on the screen.
Each child widget should be stored in a Slot. The Slot describes how the individual child should be arranged with respect to its parent (i.e. the Panel) and its peers Widgets (i.e. the Panel's other children.) For a simple example see StackPanel.
Name | Description | |
---|---|---|
|
SPanel() |
Hidden default constructor. |
Name | Description | ||
---|---|---|---|
|
Construct() |
Most panels do not create widgets as part of their implementation, so they do not need to implement a Construct() |
|
|
PaintArrangedChildren ( |
Just like OnPaint, but takes already arranged children. Can be handy for writing custom SPanels. |
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. |
|
|
SetVisibility ( |