class
CMiriFocusScope
- Module
- Miri
- Header
#include "Miri/Framework/CMiriFocusScope.h"- Namespace
Miri
Constructors
| Signature | Name | Description |
|---|---|---|
CMiriFocusScope() = default | CMiriFocusScope | |
explicit CMiriFocusScope(const CName& id) | CMiriFocusScope | |
~CMiriFocusScope() | ~CMiriFocusScope | |
CMiriFocusScope(const CMiriFocusScope&) = delete | CMiriFocusScope |
Public functions
| Returns | Name | Description |
|---|---|---|
CMiriFocusScope& | operator= | |
void | SetId | Names the scope and registers it. |
const CName& | GetId | |
void | AddRootWidget | Stamps widget as a root of this scope. |
CMiriCommandList& | GetCommandList | |
const CMiriCommandList& | GetCommandList | |
bool | HasFocus | True while the focused widget sits inside one of this scope's roots. |
bool | OwnsInput | The guard shape the editor's panels use. |
Function details
CMiriFocusScope
C++
CMiriFocusScope() = defaultCMiriFocusScope
C++
explicit CMiriFocusScope(const CName& id)~CMiriFocusScope
C++
~CMiriFocusScope()CMiriFocusScope
C++
CMiriFocusScope(const CMiriFocusScope&) = deleteoperator=
C++
CMiriFocusScope& operator=(const CMiriFocusScope&) = deleteSetId
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() constAddRootWidget
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() constHasFocus
C++
bool HasFocus() constTrue while the focused widget sits inside one of this scope's roots.
OwnsInput
C++
bool OwnsInput(bool pointerFallback) constThe 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