Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
AlgorithmPreviewParams.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include "phosphortiles_export.h"
7
8#include <QHash>
9#include <QString>
10#include <QVariantMap>
11
12namespace PhosphorTiles {
13
19struct PHOSPHORTILES_EXPORT AlgorithmPreviewParams
20{
21 QString algorithmId;
22 int maxWindows = -1;
23 int masterCount = -1;
24 qreal splitRatio = -1.0;
25
30 QHash<QString, QVariantMap> savedAlgorithmSettings;
31
32 bool operator==(const AlgorithmPreviewParams& other) const;
33 bool operator!=(const AlgorithmPreviewParams& other) const
34 {
35 return !(*this == other);
36 }
37};
38
39} // namespace PhosphorTiles
Definition AutotileEngine.h:52
User-configured tiling parameters that affect algorithm preview generation.
Definition AlgorithmPreviewParams.h:20
int maxWindows
-1 = use algorithm default
Definition AlgorithmPreviewParams.h:22
bool operator!=(const AlgorithmPreviewParams &other) const
Definition AlgorithmPreviewParams.h:33
int masterCount
-1 = use default (1)
Definition AlgorithmPreviewParams.h:23
QHash< QString, QVariantMap > savedAlgorithmSettings
Per-algorithm saved settings (masterCount, splitRatio).
Definition AlgorithmPreviewParams.h:30
QString algorithmId
Active algorithm — maxWindows/splitRatio/masterCount apply only to this.
Definition AlgorithmPreviewParams.h:21
qreal splitRatio
-1 = use algorithm default
Definition AlgorithmPreviewParams.h:24
bool operator==(const AlgorithmPreviewParams &other) const