Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
AssignmentEntry.h File Reference
#include <PhosphorLayoutApi/LayoutId.h>
#include <QColor>
#include <QHash>
#include <QList>
#include <QString>
#include <QUuid>
#include <QVariantMap>
#include <QtGlobal>
#include <optional>

Go to the source code of this file.

Classes

struct  PhosphorZones::LayoutAssignmentKey
 Key for layout assignment (screen + desktop + activity) More...
 
struct  PhosphorZones::AssignmentEntry
 Explicit per-context assignment entry storing every mode's payload. More...
 
struct  PhosphorZones::ContextGapOverride
 Per-context gap override resolved from rules. More...
 
struct  PhosphorZones::ContextOverlayOverride
 Per-context overlay-property overrides resolved from window-rule actions. More...
 
struct  PhosphorZones::ContextTilingParams
 Per-context autotile parameter overrides resolved from context rules. More...
 
struct  PhosphorZones::ContextScrollingParams
 Per-context scrolling parameter overrides resolved from context rules. More...
 

Namespaces

namespace  PhosphorZones
 

Functions

size_t PhosphorZones::qHash (const LayoutAssignmentKey &key, size_t seed=0)
 
QString PhosphorZones::modeToWireString (AssignmentEntry::Mode mode)
 Canonical wire-string for an AssignmentEntry::Mode.
 
std::optional< AssignmentEntry::ModePhosphorZones::modeFromWireString (const QString &wire)
 Inverse of modeToWireString.
 
QList< AssignmentEntry::ModePhosphorZones::allModes ()
 Iteration order for every AssignmentEntry::Mode value.
 

Variables

constexpr QLatin1String PhosphorZones::NoScrollingTemplate {"none"}
 Reserved value of AssignmentEntry::scrollingTemplateLayout meaning "this context explicitly uses NO scrolling template", as opposed to an empty field, which means "not chosen here" and inherits the configured default template.
 
constexpr QLatin1String PhosphorZones::NoSnappingLayout {"none"}
 Reserved value of AssignmentEntry::snappingLayout meaning "this context explicitly uses NO snapping layout", as opposed to an empty field, which means "not chosen here" and falls back to the registry-wide default layout.
 
constexpr QLatin1String PhosphorZones::NoTilingAlgorithm {"none"}
 Reserved value of AssignmentEntry::tilingAlgorithm meaning "this context explicitly uses NO tiling algorithm": the context stays in Autotile mode but nothing tiles there — windows float.