Per-context gap override resolved from window rules. More...
#include <phosphor-zones/include/PhosphorZones/AssignmentEntry.h>
Public Member Functions | |
| bool | isEmpty () const |
Public Attributes | |
| std::optional< int > | zonePadding |
| std::optional< int > | outerGap |
| std::optional< bool > | usePerSideOuterGap |
| std::optional< int > | outerGapTop |
| std::optional< int > | outerGapBottom |
| std::optional< int > | outerGapLeft |
| std::optional< int > | outerGapRight |
Per-context gap override resolved from window rules.
Unlike AssignmentEntry (which is engine-mode/layout centric and gated on a SetEngineMode action), gap overrides are independent per-property window-rule actions resolved per slot. Each field is set only when a matching context rule fills the corresponding gap slot, so an unset field falls through to the next precedence layer (per-screen → layout → global). The daemon maps a populated override into a PerScreenSnappingKey-shaped map for GeometryUtils::getEffectiveOuterGaps / getEffectiveZonePadding.
|
inline |
| std::optional<int> PhosphorZones::ContextGapOverride::outerGap |
| std::optional<int> PhosphorZones::ContextGapOverride::outerGapBottom |
| std::optional<int> PhosphorZones::ContextGapOverride::outerGapLeft |
| std::optional<int> PhosphorZones::ContextGapOverride::outerGapRight |
| std::optional<int> PhosphorZones::ContextGapOverride::outerGapTop |
| std::optional<bool> PhosphorZones::ContextGapOverride::usePerSideOuterGap |
| std::optional<int> PhosphorZones::ContextGapOverride::zonePadding |