FSlateApplicationBase::HasAnyUserFocus

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

Choose your operating system:

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.