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

User-configured tiling parameters that affect algorithm preview generation. More...

#include <phosphor-tiles/include/PhosphorTiles/AlgorithmPreviewParams.h>

Public Member Functions

bool operator== (const AlgorithmPreviewParams &other) const
 
bool operator!= (const AlgorithmPreviewParams &other) const
 

Public Attributes

QString algorithmId
 Active algorithm — maxWindows/splitRatio/masterCount apply only to this.
 
int maxWindows = -1
 -1 = use algorithm default
 
int masterCount = -1
 -1 = use default (1)
 
qreal splitRatio = -1.0
 -1 = use algorithm default
 
QHash< QString, QVariantMap > savedAlgorithmSettings
 Per-algorithm saved settings (masterCount, splitRatio).
 

Detailed Description

User-configured tiling parameters that affect algorithm preview generation.

Lives at namespace scope (rather than nested inside AlgorithmRegistry) so the abstract ITileAlgorithmRegistry contract can carry it without the interface depending on the concrete registry type — which would create a circular include.

Member Function Documentation

◆ operator!=()

bool PhosphorTiles::AlgorithmPreviewParams::operator!= ( const AlgorithmPreviewParams other) const
inline

◆ operator==()

bool PhosphorTiles::AlgorithmPreviewParams::operator== ( const AlgorithmPreviewParams other) const

Member Data Documentation

◆ algorithmId

QString PhosphorTiles::AlgorithmPreviewParams::algorithmId

Active algorithm — maxWindows/splitRatio/masterCount apply only to this.

◆ masterCount

int PhosphorTiles::AlgorithmPreviewParams::masterCount = -1

-1 = use default (1)

◆ maxWindows

int PhosphorTiles::AlgorithmPreviewParams::maxWindows = -1

-1 = use algorithm default

◆ savedAlgorithmSettings

QHash<QString, QVariantMap> PhosphorTiles::AlgorithmPreviewParams::savedAlgorithmSettings

Per-algorithm saved settings (masterCount, splitRatio).

Generalised replacement for hard-coded centered-master fields. Key = algorithm ID, value = QVariantMap with "masterCount" (int) and "splitRatio" (qreal).

◆ splitRatio

qreal PhosphorTiles::AlgorithmPreviewParams::splitRatio = -1.0

-1 = use algorithm default


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