FSlateApplicationBase::HasUserFocus

Gets whether or not a particular widget has the specified users focus, and if so the type of focus.

Windows
MacOS
Linux

Override Hierarchy

FSlateApplicationBase::HasUserFocus()

FSlateApplication::HasUserFocus()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Application/SlateApplicationBase.h

Include

#include "Application/SlateApplicationBase.h"

Syntax

TOptional< EFocusCause > HasUserFocus
(
    const TSharedPtr< const SWidget > Widget,
    int32 UserIndex
) const

Remarks

Gets whether or not a particular widget has the specified users focus, and if so the type of focus.

Returns

The optional will be set with the focus cause, if unset this widget doesn't have focus.

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