Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
GapResolution.h File Reference
#include <PhosphorEngine/PerScreenKeys.h>
#include <PhosphorLayoutApi/EdgeGaps.h>
#include <QVariantMap>
#include <optional>

Go to the source code of this file.

Namespaces

namespace  PhosphorEngine
 
namespace  PhosphorEngine::GapResolution
 Shared resolution of gap-override layers expressed as PerScreenKeys-shaped QVariantMaps (context-rule gap overrides, per-screen config overrides).
 

Functions

template<typename Normalize >
std::optional< int > PhosphorEngine::GapResolution::gapFromOverrideMap (const QVariantMap &map, QLatin1String key, Normalize normalize)
 Single gap value from an override map, or nullopt when map lacks key.
 
template<typename Normalize >
std::optional<::PhosphorLayout::EdgeGapsPhosphorEngine::GapResolution::outerGapsFromOverrideMap (const QVariantMap &map, int missingSideBase, Normalize normalize)
 Resolve the outer-gap portion of an override map as ONE atomic layer.