Navigation
API > API/Runtime > API/Runtime/Slate
SSplitter2x2 A splitter which has exactly 4 children and allows simultaneous of all children along an axis as well as resizing all children by dragging the center of the splitter.
| Name | SSplitter2x2 |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SSplitter.h |
| Include Path | #include "Widgets/Layout/SSplitter.h" |
Syntax
class SSplitter2x2 : public SPanel
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SPanel → SSplitter2x2
- FSlateControlledConstruction → SWidget → SPanel → SSplitter2x2
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SSplitter2x2() |
Widgets/Layout/SSplitter.h |
Classes
| Name | Remarks |
|---|---|
| FSlot |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsResizing | bool | True if a splitter axis is currently being resized. | Widgets/Layout/SSplitter.h | |
| Children | TPanelChildren< FSlot > | The children of the splitter. There can only be four | Widgets/Layout/SSplitter.h | |
| MinSplitterChildLength | float | Widgets/Layout/SSplitter.h | ||
| ResizingAxisMask | EResizingAxis | The axis currently being resized or INDEX_NONE if no resizing | Widgets/Layout/SSplitter.h | |
| SplitterHandleSize | float | Widgets/Layout/SSplitter.h | ||
| Style | const FSplitterStyle * | Widgets/Layout/SSplitter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Widgets/Layout/SSplitter.h | ||
TSharedRef< SWidget > GetBottomLeftContent() |
Returns the widget displayed in the splitter bottom left area | Widgets/Layout/SSplitter.h | |
TSharedRef< SWidget > GetBottomRightContent() |
Returns the widget displayed in the splitter bottom right area | Widgets/Layout/SSplitter.h | |
void GetSplitterPercentages
(
TArray< FVector2D >& OutPercentages |
Returns an array of size percentages for the children in this order: TopLeft, BottomLeft, TopRight, BottomRight | Widgets/Layout/SSplitter.h | |
TSharedRef< SWidget > GetTopLeftContent() |
Returns the widget displayed in the splitter top left area | Widgets/Layout/SSplitter.h | |
TSharedRef< SWidget > GetTopRightContent() |
Returns the widget displayed in the splitter top right area | Widgets/Layout/SSplitter.h | |
void SetBottomLeftContent
(
TSharedRef< SWidget > BottomLeftContent |
Sets the widget to be displayed in the splitter bottom left area | Widgets/Layout/SSplitter.h | |
void SetBottomRightContent
(
TSharedRef< SWidget > BottomRightContent |
Sets the widget to be displayed in the splitter bottom right area | Widgets/Layout/SSplitter.h | |
void SetSplitterPercentages
(
TArrayView< FVector2D > InPercentages |
Sets the size percentages for the children in this order: TopLeft, BottomLeft, TopRight, BottomRight | Widgets/Layout/SSplitter.h | |
void SetTopLeftContent
(
TSharedRef< SWidget > TopLeftContent |
Sets the widget to be displayed in the splitter top left area | Widgets/Layout/SSplitter.h | |
void SetTopRightContent
(
TSharedRef< SWidget > TopRightContent |
Sets the widget to be displayed in the splitter top right area | Widgets/Layout/SSplitter.h |