Choose your operating system:
Windows
macOS
Linux
| SWidget::OnDragDetected()
|
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Slate/SObjectTableRow.h |
Include |
#include "Slate/SObjectTableRow.h" |
virtual FReply OnDragDetected
(
const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent
)
Called when Slate detects that a widget started to be dragged. Usage: A widget can ask Slate to detect a drag. OnMouseDown() reply with FReply::Handled().DetectDrag( SharedThis(this) ). Slate will either send an OnDragDetected() event or do nothing. If the user releases a mouse button or leaves the widget before a drag is triggered (maybe user started at the very edge) then no event will be sent.
Parameter |
Description |
---|---|
InMyGeometry |
Widget geometry |
InMouseEvent |
MouseMove that triggered the drag |