SSplitter::HandleResizingByMousePosition

Resizes the children based on user input.

Choose your operating system:

Windows

macOS

Linux

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

Syntax

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

Parameter

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.