Navigation
API > API/Editor > API/Editor/SequencerWidgets
FPendingWidgetFocus is a utility class that stores a pending focus function when a SWidget is hovered over. It aims to provide a way to focus on a widget without having to actually click on it. The focus function is stored on the mouse enter event and will only be executed if a key down event is sent while the widget is hovered. If the mouse leave event is called without any key down event having been called, the function is reset and the focus is not modified at all.
| Name | FPendingWidgetFocus |
| Type | class |
| Header File | /Engine/Source/Editor/SequencerWidgets/Public/WidgetFocusUtils.h |
| Include Path | #include "WidgetFocusUtils.h" |
Syntax
class FPendingWidgetFocus : public TSharedFromThis< FPendingWidgetFocus >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FPendingWidgetFocus
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| WidgetFocusUtils.h | |||
FPendingWidgetFocus
(
const TArray< FName >& InTypesKeepingFocus |
WidgetFocusUtils.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FPendingWidgetFocus() |
WidgetFocusUtils.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| KeepingFocus | TArray< FName > | WidgetFocusUtils.h | ||
| PendingFocusFunction | TFunction< void()> | WidgetFocusUtils.h | ||
| PreInputButtonDownHandle | FDelegateHandle | WidgetFocusUtils.h | ||
| PreInputKeyDownHandle | FDelegateHandle | WidgetFocusUtils.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Enable
(
const bool InEnabled |
WidgetFocusUtils.h | ||
bool IsEnabled() |
WidgetFocusUtils.h | ||
void ResetPendingFocus() |
WidgetFocusUtils.h | ||
| WidgetFocusUtils.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FPendingWidgetFocus MakeNoTextEdit() |
WidgetFocusUtils.h |