SSplitter::GetHandleBeingResizedFromMousePosition

Given a mouse position within the splitter, figure out which resize handle we are hovering (if any).

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

template<EOrientation SplitterOrientation>
static int32 GetHandleBeingResizedFromMousePosition
(
    float PhysicalSplitterHandleSize,
    float HitDetectionSplitterHandleSize,
    FVector2D LocalMousePos,
    const TArray< FLayoutGeometry > & ChildGeometries
)

Remarks

Given a mouse position within the splitter, figure out which resize handle we are hovering (if any).

Returns

The index of the handle being hovered, or INDEX_NONE if we are not hovering a handle.

Parameters

Parameter

Description

LocalMousePos

The mouse position within this splitter.

ChildGeometris

The arranged children and their geometries; we need to test the mouse against them.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss