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

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
 

Detailed Description

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.

Member Function Documentation

◆ isEmpty()

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

Member Data Documentation

◆ 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

◆ zonePadding

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

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