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

Per-context gap override resolved from rules. More...

#include <PhosphorZones/AssignmentEntry.h>

Public Member Functions

bool isEmpty () const

Public Attributes

std::optional< int > innerGap
std::optional< int > outerGap
std::optional< bool > usePerSideOuterGap
std::optional< int > outerGapTop
std::optional< int > outerGapBottom
std::optional< int > outerGapLeft
std::optional< int > outerGapRight

Detailed Description

Per-context gap override resolved from 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 PerScreenKeys-shaped map for GeometryUtils::getEffectiveOuterGaps / getEffectiveInnerGap.

Member Function Documentation

◆ isEmpty()

bool PhosphorZones::ContextGapOverride::isEmpty ( ) const
inline

Member Data Documentation

◆ innerGap

std::optional<int> PhosphorZones::ContextGapOverride::innerGap

◆ outerGap

std::optional<int> PhosphorZones::ContextGapOverride::outerGap

◆ outerGapBottom

std::optional<int> PhosphorZones::ContextGapOverride::outerGapBottom

◆ outerGapLeft

std::optional<int> PhosphorZones::ContextGapOverride::outerGapLeft

◆ outerGapRight

std::optional<int> PhosphorZones::ContextGapOverride::outerGapRight

◆ outerGapTop

std::optional<int> PhosphorZones::ContextGapOverride::outerGapTop

◆ usePerSideOuterGap

std::optional<bool> PhosphorZones::ContextGapOverride::usePerSideOuterGap

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