Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
ScrollingTemplate.h File Reference
#include "phosphorzones_export.h"
#include <QJsonObject>
#include <QLatin1String>
#include <QList>
#include <QString>
#include <QUuid>
#include <QtGlobal>

Go to the source code of this file.

Classes

struct  PhosphorZones::ScrollingTemplateColumn
 One column of a scrolling template's seed blueprint. More...
 
class  PhosphorZones::ScrollingTemplate
 A scrolling screen's first-class sizing template. More...
 

Namespaces

namespace  PhosphorZones
 
namespace  PhosphorZones::TemplateJsonKeys
 The template JSON keys other modules have to spell.
 

Variables

constexpr qreal PhosphorZones::MinTemplateFraction = 0.05
 Smallest fraction of the work area a template may express, mirroring the scroll engine's PhosphorScrollEngine::MinColumnWidthFraction (ScrollTypes.h).
 
constexpr int PhosphorZones::MaxTemplateColumns = 16
 Most blueprint columns a template may carry, mirroring the scroll engine's kMaxTemplateEntries (enginelimits.h) the same hand-written way MinTemplateFraction mirrors its floor.
 
constexpr int PhosphorZones::DefaultWidthKindProportion = 0
 The engine's DefaultWidthKind wire values, mirrored the same hand-written way MinTemplateFraction mirrors its floor: this library deliberately does not depend on phosphor-scroll-engine, so the vocabulary is repeated by documented value and is append-only on both sides.
 
constexpr int PhosphorZones::DefaultWidthKindFixed = 1
 
constexpr int PhosphorZones::DefaultWidthKindClientDecides = 2
 
constexpr int PhosphorZones::DefaultWidthKindPreset = 3
 
constexpr qreal PhosphorZones::FractionDedupeEpsilon = 0.01
 Two preset stops closer together than this are the same stop: the normalization dedupe drops the later one.
 
constexpr QLatin1String PhosphorZones::TemplateJsonKeys::Id {"id"}
 
constexpr QLatin1String PhosphorZones::TemplateJsonKeys::IsSystem {"isSystem"}
 
constexpr QLatin1String PhosphorZones::TemplateJsonKeys::SourcePath {"sourcePath"}