SWidget::HasMouseCaptureByUser

Checks to see if this widget has mouse capture from the provided user.

Windows
MacOS
Linux

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

bool HasMouseCaptureByUser
(
    int32 UserIndex,
    TOptional< int32 > PointerIndex
) const

Remarks

Checks to see if this widget has mouse capture from the provided user.

Returns

True if this widget has captured the mouse

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