class

CMiriFocusScopeRegistry

Module
Miri
Header
#include "Miri/Framework/CMiriFocusScope.h"
Namespace
Miri

Constructors

SignatureNameDescription
CMiriFocusScopeRegistry(const CMiriFocusScopeRegistry&) = deleteCMiriFocusScopeRegistry

Public functions

ReturnsNameDescription
CMiriFocusScopeRegistry&Get
CMiriFocusScopeRegistry&operator=
voidRegisterScope
voidUnregisterScope
CMiriFocusScope*FindScope
voidSetFocusedWidgetFed by CMiriInputProcessor on every focus change, including the clear that OS deactivation and ResetAll perform.
TSharedPtr<MWidget>GetFocusedWidgetOut of line on purpose: this header only forward-declares MWidget, so pinning the weak handle has to happen where the type is complete.
std::vector<CMiriFocusScope*>GetFocusPathThe registered scopes the focused widget sits inside, innermost first.
CMiriFocusScope*GetActiveScope
boolHasFocusedScope
boolIsScopeFocused
boolTryExecuteWalks the focus path innermost-first and runs the first scope that binds commandId and whose CanExecute agrees.
voidReset

Function details

CMiriFocusScopeRegistry

C++
CMiriFocusScopeRegistry(const CMiriFocusScopeRegistry&) = delete

Get

C++
static CMiriFocusScopeRegistry& Get()

operator=

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

RegisterScope

C++
void RegisterScope(CMiriFocusScope* scope)

UnregisterScope

C++
void UnregisterScope(CMiriFocusScope* scope)

FindScope

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

SetFocusedWidget

C++
void SetFocusedWidget(const TSharedPtr<MWidget>& widget)

Fed by CMiriInputProcessor on every focus change, including the clear that OS deactivation and ResetAll perform.

GetFocusedWidget

C++
TSharedPtr<MWidget> GetFocusedWidget() const

Out of line on purpose: this header only forward-declares MWidget, so pinning the weak handle has to happen where the type is complete.

GetFocusPath

C++
std::vector<CMiriFocusScope*> 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++
CMiriFocusScope* 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 Miri/Framework/CMiriFocusScope.h via miri.json · Dec 5, 2026Version 1.1.0