SWidget::OnMouseMove

The system calls this method to notify the widget that a mouse moved within it.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h

Include

#include "Widgets/SWidget.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWidget.cpp

Syntax

virtual FReply OnMouseMove
(
    const FGeometry & MyGeometry,
    const FPointerEvent & MouseEvent
)

Remarks

The system calls this method to notify the widget that a mouse moved within it. This event is bubbled.

Returns

Whether the event was handled along with possible requests for the system to take action.

Parameters

Parameter

Description

MyGeometry

The Geometry of the widget receiving the event

MouseEvent

Information about the input event