FSlateUser::HasFocus

Returns the cause for which the provided widget was focused, or nothing if the given widget is not the current focus target.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateUser.h

Include

#include "Framework/Application/SlateUser.h"

Source

/Engine/Source/Runtime/Slate/Private/Framework/Application/SlateUser.cpp

Syntax

TOptional< EFocusCause > HasFocus
(
    TSharedPtr< const SWidget > Widget
) const

Remarks

Returns the cause for which the provided widget was focused, or nothing if the given widget is not the current focus target.

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