Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorZones::LayoutRegistry::RuleSlotResolution Struct Reference

The rule-derived slot resolution of the assignment cascade, as resolveRuleSlots produces it and resolveAssignmentEntry caches it. More...

#include <PhosphorZones/LayoutRegistry.h>

Public Attributes

std::optional< AssignmentEntry > modeEntry
std::optional< QString > snappingLayout
std::optional< QString > tilingAlgorithm
std::optional< QString > scrollingTemplate

Detailed Description

The rule-derived slot resolution of the assignment cascade, as resolveRuleSlots produces it and resolveAssignmentEntry caches it.

Holds ONLY what the rule set produced for each of the four independent slots. Given a fixed cache key the value is a pure function of the rule set (the cache's revision-invalidation contract). The live tiled-window count, the screen shape and the colour scheme are the non-rule-set inputs that affect the result; rather than break that contract they participate in the cache KEY (the "twc:N", "|or:<token>|sz:WxH" and "|cs:<token>" components), so each combination resolves its own entry. The global default — an external provider, not part of the rule set and not revision-tracked — is folded in AFTER the cache returns, so a default-setting change is reflected immediately without a rule-set revision bump (a settings edit produces none). modeEntry is engaged when an engine-mode rule won (it carries that rule's mode plus its own payload tokens); when disengaged the caller bases the entry on the live global default for the context. snappingLayout / tilingAlgorithm / scrollingTemplate are engaged when a payload rule filled that slot, and override the base's field.

Member Data Documentation

◆ modeEntry

std::optional<AssignmentEntry> PhosphorZones::LayoutRegistry::RuleSlotResolution::modeEntry

◆ scrollingTemplate

std::optional<QString> PhosphorZones::LayoutRegistry::RuleSlotResolution::scrollingTemplate

◆ snappingLayout

std::optional<QString> PhosphorZones::LayoutRegistry::RuleSlotResolution::snappingLayout

◆ tilingAlgorithm

std::optional<QString> PhosphorZones::LayoutRegistry::RuleSlotResolution::tilingAlgorithm

The documentation for this struct was generated from the following file: