Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout > API/Runtime/Slate/Widgets/Layout/SSplitter
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SSplitter.h |
| Include | #include "Widgets/Layout/SSplitter.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Widgets/Layout/SSplitter.cpp |
void HandleResizingByMousePosition
(
EOrientation Orientation,
const float PhysicalSplitterHandleSize,
const ESplitterResizeMode::Type ResizeMode,
int32 DraggedHandle,
const FVector2D & LocalMousePos,
TPanelChildren < FSlot > & Children,
const TArray < FLayoutGeometry > & ChildGeometries
)
Remarks
Resizes the children based on user input. The template parameter Orientation corresponds to the splitter being horizontal or vertical.
Parameters
| Name | Description |
|---|---|
| DraggedHandle | The index of the handle that the user is dragging. |
| LocalMousePos | The position of the mouse in this widgets local space. |
| Children | A reference to this splitter's children array; we will modify the children's layout values. |
| ChildGeometries | The arranged children; we need their sizes and positions so that we can perform a resizing. |