FSlateApplicationBase::HasAnyUserFocus

Gets whether or not a particular widget has any users focus, and if so the type of focus (first one found).

Windows
MacOS
Linux

Override Hierarchy

FSlateApplicationBase::HasAnyUserFocus()

FSlateApplication::HasAnyUserFocus()

References

Module

SlateCore

Header

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

Include

#include "Application/SlateApplicationBase.h"

Syntax

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

Remarks

Gets whether or not a particular widget has any users focus, and if so the type of focus (first one found).

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