class

CArcFocusScope

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

Constructors

SignatureNameDescription
CArcFocusScope() = defaultCArcFocusScope
explicit CArcFocusScope(const CName& id)CArcFocusScope
~CArcFocusScope()~CArcFocusScope
CArcFocusScope(const CArcFocusScope&) = deleteCArcFocusScope

Public functions

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

Function details

CArcFocusScope

C++
CArcFocusScope() = default

CArcFocusScope

C++
explicit CArcFocusScope(const CName& id)

~CArcFocusScope

C++
~CArcFocusScope()

CArcFocusScope

C++
CArcFocusScope(const CArcFocusScope&) = delete

operator=

C++
CArcFocusScope& operator=(const CArcFocusScope&) = 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<AWidget>& 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++
CArcCommandList& GetCommandList()

GetCommandList

C++
const CArcCommandList& 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 Arc/Framework/CArcFocusScope.h via arc.json · Nov 5, 2026Version 1.0.0