class
CArcFocusScopeRegistry
- Module
- Arc
- Header
#include "Arc/Framework/CArcFocusScope.h"- Namespace
Arcf
Constructors
| Signature | Name | Description |
|---|---|---|
CArcFocusScopeRegistry(const CArcFocusScopeRegistry&) = delete | CArcFocusScopeRegistry |
Public functions
| Returns | Name | Description |
|---|---|---|
CArcFocusScopeRegistry& | Get | |
CArcFocusScopeRegistry& | operator= | |
void | RegisterScope | |
void | UnregisterScope | |
CArcFocusScope* | FindScope | |
void | SetFocusedWidget | Fed by CArcInputProcessor on every focus change, including the clear that OS deactivation and ResetAll perform. |
TSharedPtr<AWidget> | GetFocusedWidget | Out of line on purpose: this header only forward-declares AWidget, so pinning the weak handle has to happen where the type is complete. |
std::vector<CArcFocusScope*> | GetFocusPath | The registered scopes the focused widget sits inside, innermost first. |
CArcFocusScope* | GetActiveScope | |
bool | HasFocusedScope | |
bool | IsScopeFocused | |
bool | TryExecute | Walks the focus path innermost-first and runs the first scope that binds commandId and whose CanExecute agrees. |
void | Reset |
Function details
CArcFocusScopeRegistry
C++
CArcFocusScopeRegistry(const CArcFocusScopeRegistry&) = deleteGet
C++
static CArcFocusScopeRegistry& Get()operator=
C++
CArcFocusScopeRegistry& operator=(const CArcFocusScopeRegistry&) = deleteRegisterScope
C++
void RegisterScope(CArcFocusScope* scope)UnregisterScope
C++
void UnregisterScope(CArcFocusScope* scope)FindScope
C++
CArcFocusScope* FindScope(const CName& id) constSetFocusedWidget
C++
void SetFocusedWidget(const TSharedPtr<AWidget>& widget)Fed by CArcInputProcessor on every focus change, including the clear that OS deactivation and ResetAll perform.
GetFocusedWidget
C++
TSharedPtr<AWidget> GetFocusedWidget() constOut of line on purpose: this header only forward-declares AWidget, so pinning the weak handle has to happen where the type is complete.
GetFocusPath
C++
std::vector<CArcFocusScope*> GetFocusPath() constThe registered scopes the focused widget sits inside, innermost first. Empty when nothing is focused or no ancestor is a scope root. Built on demand rather than cached at focus time, so a scope that registers after the click that focused it still resolves.
GetActiveScope
C++
CArcFocusScope* GetActiveScope() constHasFocusedScope
C++
bool HasFocusedScope() constIsScopeFocused
C++
bool IsScopeFocused(const CName& id) constTryExecute
C++
bool TryExecute(const CName& commandId) constWalks the focus path innermost-first and runs the first scope that binds commandId and whose CanExecute agrees. False when no scope claims it, which is the caller's cue to fall through to the pushed lists and then the global one.
Reset
C++
void Reset()Generated from Arc/Framework/CArcFocusScope.h via arc.json · Nov 5, 2026Version 1.0.0