Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorContext Namespace Reference

Classes

struct  ContextHandle
 Frozen snapshot of "where am I right now?" for a single resolver query. More...
class  ContextResolver
 Default IContextResolver implementation backed by three adapter pointers. More...
class  IWorkspaceState
 Adapter interfaces the concrete ContextResolver depends on. More...
class  IModeProvider
 Per-screen mode dispatcher adapter. More...
class  IContextGateSource
 Disable / lock cascade adapter. More...
class  IContextResolver
 The single resolver façade every Phosphor consumer goes through for "what does this screen look like RIGHT NOW under the disable / lock / mode cascade? More...

Enumerations

enum class  DisabledReason { NotDisabled , MonitorDisabled , DesktopDisabled , ActivityDisabled }
 Why a context is considered disabled, in priority order. More...

Enumeration Type Documentation

◆ DisabledReason

Why a context is considered disabled, in priority order.

The disable cascade walks Monitor → Desktop → Activity and the first non-Disabled bucket wins. The enum is ordered so callers can reason about "highest-priority reason" — if a screen is monitor-disabled the desktop / activity gates are short-circuited.

Mirrors the GPL daemon's PlasmaZones::DisabledReason so consumers can map at the boundary, but lives in PhosphorContext so the LGPL library does not pull in any GPL header.

Enumerator
NotDisabled 
MonitorDisabled 
DesktopDisabled 
ActivityDisabled