class

CMiriFocusScope

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

Constructors

SignatureNameDescription
CMiriFocusScope() = defaultCMiriFocusScope
explicit CMiriFocusScope(const CName& id)CMiriFocusScope
~CMiriFocusScope()~CMiriFocusScope
CMiriFocusScope(const CMiriFocusScope&) = deleteCMiriFocusScope

Public functions

ReturnsNameDescription
CMiriFocusScope&operator=
voidSetIdNames the scope and registers it.
const CName&GetId
voidAddRootWidgetStamps widget as a root of this scope.
CMiriCommandList&GetCommandList
const CMiriCommandList&GetCommandList
boolHasFocusTrue while the focused widget sits inside one of this scope's roots.
boolOwnsInputThe guard shape the editor's panels use.

Function details

CMiriFocusScope

C++
CMiriFocusScope() = default

CMiriFocusScope

C++
explicit CMiriFocusScope(const CName& id)

~CMiriFocusScope

C++
~CMiriFocusScope()

CMiriFocusScope

C++
CMiriFocusScope(const CMiriFocusScope&) = delete

operator=

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

SetId

C++
void SetId(const CName& id)

Names the scope and registers it. Safe to call repeatedly with the same id; changing the id of a live scope re-registers it.

GetId

C++
const CName& GetId() const

AddRootWidget

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

Stamps widget as a root of this scope. A panel that rebuilds its root calls this again with the new one; the stale widget dies with its stamp, so nothing has to be unstamped.

GetCommandList

C++
CMiriCommandList& GetCommandList()

GetCommandList

C++
const CMiriCommandList& GetCommandList() const

HasFocus

C++
bool HasFocus() const

True while the focused widget sits inside one of this scope's roots.

OwnsInput

C++
bool OwnsInput(bool pointerFallback) const

The guard shape the editor's panels use. Focus decides whenever ANY scope owns it; pointerFallback decides only when none does, which is what keeps a user who never clicks into a panel exactly where they were before scopes existed.

Generated from Miri/Framework/CMiriFocusScope.h via miri.json · Dec 5, 2026Version 1.1.0