class

CArcFocusScopeRegistry

Module
Arc
Header
#include "Arc/Framework/CArcFocusScope.h"
Namespace
Arcf

Constructors

SignatureNameDescription
CArcFocusScopeRegistry(const CArcFocusScopeRegistry&) = deleteCArcFocusScopeRegistry

Public functions

ReturnsNameDescription
CArcFocusScopeRegistry&Get
CArcFocusScopeRegistry&operator=
voidRegisterScope
voidUnregisterScope
CArcFocusScope*FindScope
voidSetFocusedWidgetFed by CArcInputProcessor on every focus change, including the clear that OS deactivation and ResetAll perform.
TSharedPtr<AWidget>GetFocusedWidgetOut 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*>GetFocusPathThe registered scopes the focused widget sits inside, innermost first.
CArcFocusScope*GetActiveScope
boolHasFocusedScope
boolIsScopeFocused
boolTryExecuteWalks the focus path innermost-first and runs the first scope that binds commandId and whose CanExecute agrees.
voidReset

Function details

CArcFocusScopeRegistry

C++
CArcFocusScopeRegistry(const CArcFocusScopeRegistry&) = delete

Get

C++
static CArcFocusScopeRegistry& Get()

operator=

C++
CArcFocusScopeRegistry& operator=(const CArcFocusScopeRegistry&) = delete

RegisterScope

C++
void RegisterScope(CArcFocusScope* scope)

UnregisterScope

C++
void UnregisterScope(CArcFocusScope* scope)

FindScope

C++
CArcFocusScope* FindScope(const CName& id) const

SetFocusedWidget

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() const

Out 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() const

The 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() const

HasFocusedScope

C++
bool HasFocusedScope() const

IsScopeFocused

C++
bool IsScopeFocused(const CName& id) const

TryExecute

C++
bool TryExecute(const CName& commandId) const

Walks 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