SViewport::OnCursorQuery

The system asks each widget under the mouse to provide a cursor. This event is bubbled.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

SWidget::OnCursorQuery()

SViewport::OnCursorQuery()

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/SViewport.h

Include

#include "Widgets/SViewport.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/SViewport.cpp

Syntax

virtual FCursorReply OnCursorQuery
(
    const FGeometry & MyGeometry,
    const FPointerEvent & CursorEvent
) const

Remarks

The system asks each widget under the mouse to provide a cursor. This event is bubbled.

Returns

FCursorReply::Unhandled() if the event is not handled; return FCursorReply::Cursor() otherwise.