Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/SSplitter
Description
Resizes the children based on user input. The template parameter Orientation corresponds to the splitter being horizontal or vertical.
| Name | HandleResizingByMousePosition |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SSplitter.h |
| Include Path | #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
)
Parameters
| Name | Remarks |
|---|---|
| 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. |